test: Match flows and users exactly

This commit is contained in:
T. R. Bernstein
2025-02-27 17:35:12 +01:00
parent 7fd21dd1b2
commit 15d5733d84
2 changed files with 2 additions and 2 deletions

View File

@@ -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()
}

View File

@@ -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()