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:
Jarrod Flesch
2025-06-26 22:40:19 -04:00
committed by GitHub
parent 7ebac630f7
commit 86e48ae70b
3 changed files with 47 additions and 39 deletions

View File

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