Skip to content

Commit b11d97a

Browse files
authored
fix(ci): playwright selector strict mode violation (#5655)
1 parent 3ebc832 commit b11d97a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

e2e/playwright/regression/shared/snapshots.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export const deleteAppSnapshot = async (page: Page, expect: Expect) => {
374374

375375
export const createFullSnapshot = async (page: Page, expect: Expect) => {
376376
await page.locator('.NavItem').getByText('Snapshots', { exact: true }).click();
377-
await page.getByRole('link', { name: 'Full Snapshots (Instance)' }).click();
377+
await page.getByTestId('console-subnav').getByRole('link', { name: 'Full Snapshots (Instance)' }).click();
378378
await expect(page.locator('.Loader')).not.toBeVisible({ timeout: 15000 });
379379

380380
// Full snapshots page
@@ -501,7 +501,7 @@ export const restoreFullSnapshot = async (
501501
isAirgapped: boolean
502502
) => {
503503
await page.locator('.NavItem').getByText('Snapshots', { exact: true }).click();
504-
await page.getByRole('link', { name: 'Full Snapshots (Instance)' }).click();
504+
await page.getByTestId('console-subnav').getByRole('link', { name: 'Full Snapshots (Instance)' }).click();
505505
await expect(page.locator('.Loader')).not.toBeVisible({ timeout: 15000 });
506506

507507
const fullSnapshotsCard = page.getByTestId('full-snapshots-card');
@@ -534,7 +534,7 @@ export const restoreFullSnapshot = async (
534534

535535
export const deleteFullSnapshot = async (page: Page, expect: Expect) => {
536536
await page.locator('.NavItem').getByText('Snapshots', { exact: true }).click();
537-
await page.getByRole('link', { name: 'Full Snapshots (Instance)' }).click();
537+
await page.getByTestId('console-subnav').getByRole('link', { name: 'Full Snapshots (Instance)' }).click();
538538
await expect(page.locator('.Loader')).not.toBeVisible({ timeout: 15000 });
539539

540540
const fullSnapshotsCard = page.getByTestId('full-snapshots-card');

0 commit comments

Comments
 (0)