Skip to content

Commit 3b8ceaa

Browse files
Update code/e2e-internal/open-service-sync.spec.ts
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
1 parent 68e98c7 commit 3b8ceaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/e2e-internal/open-service-sync.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const STORY_READY_TIMEOUT = PREVIEW_STORY_TIMEOUT;
1818
const STATIC_LOAD_TIMEOUT = 20_000;
1919

2020
async function openOpenServicePanel(page: Page) {
21-
const tab = page.locator('[role=tablist] [role=tab]').filter({ hasText: /^Open Service/ });
21+
const tab = page.getByRole('tab', { name: /^Open Service/ });
2222
await expect(tab).toBeVisible({ timeout: STORY_READY_TIMEOUT });
2323
await tab.click();
2424
await expect(page.locator('#storybook-panel-root').getByRole('tabpanel')).toBeVisible();

0 commit comments

Comments
 (0)