test: Match flows and users exactly
This commit is contained in:
@@ -9,7 +9,7 @@ import { getAccountForWorker } from '../fixtures/worker-specific-admin-user.js'
|
||||
|
||||
async function openOperationListOfFlow(page: Page, flowName: string) {
|
||||
await navigateTo(page, '/settings/flows')
|
||||
await page.getByText(flowName).click()
|
||||
await page.getByText(flowName, { exact: true }).click()
|
||||
await page.getByRole('main').locator('i').nth(4).click()
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ const searchOptions = {
|
||||
async function setLanguage(page: Page, user: string, language: keyof typeof searchOptions) {
|
||||
const options = searchOptions[language]
|
||||
await navigateTo(page, '/users')
|
||||
await page.getByText(user).click()
|
||||
await page.getByText(user, { exact: true }).click()
|
||||
await page.locator('.v-menu-activator > .v-input > .input').first().click()
|
||||
await page.getByRole('textbox', { name: 'Search' }).fill(options.searchStr)
|
||||
await page.getByText(options.select).click()
|
||||
|
||||
Reference in New Issue
Block a user