test: bulk edit flaky selectors (#12950)
https://github.com/payloadcms/payload/pull/12861 introduced some flaky test selectors. Specifically bulk editing values and then looking for the previous values in the table rows. This PR fixes the flakes and fixes eslint errors in `findTableRow` and `findTableCell` helper funcitons.
This commit is contained in:
@@ -122,7 +122,7 @@ describe('Localization', () => {
|
||||
await page.locator('#action-save').click()
|
||||
|
||||
await page.locator('text=Versions').click()
|
||||
const firstVersion = findTableRow(page, 'Currently Published')
|
||||
const firstVersion = await findTableRow(page, 'Currently Published')
|
||||
await firstVersion.locator('a').click()
|
||||
|
||||
await expect(page.locator('.view-version__toggle-locales')).toBeVisible()
|
||||
|
||||
Reference in New Issue
Block a user