diff --git a/site/gatsby-site/playwright/e2e-full/cite.spec.ts b/site/gatsby-site/playwright/e2e-full/cite.spec.ts index 807a95372a..9595ad4663 100644 --- a/site/gatsby-site/playwright/e2e-full/cite.spec.ts +++ b/site/gatsby-site/playwright/e2e-full/cite.spec.ts @@ -110,8 +110,8 @@ test.describe('Cite pages', () => { await page.goto(url + '#' + _id); - await page.click(`[id="r${_id}"] [data-cy="expand-report-button"]`); - await page.click(`[id="r${_id}"] [data-cy="flag-button"]`); + await page.locator(`[id="r${_id}"] [data-cy="expand-report-button"]`).click(); + await page.locator(`[id="r${_id}"] [data-cy="flag-button"]`).click(); const modal = page.locator('[data-cy="flag-report-3"]'); await expect(modal).toBeVisible(); @@ -120,7 +120,7 @@ test.describe('Cite pages', () => { await expect(modal.locator('[data-cy="flag-toggle"]')).toBeDisabled(); - await page.click('[aria-label="Close"]'); + await page.locator('[aria-label="Close"]').click(); await expect(modal).not.toBeVisible();