mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Fix e2e tests
This commit is contained in:
parent
b5c6a2d7d8
commit
c33b724004
@ -29,7 +29,7 @@ test.describe('addon-interactions', () => {
|
||||
await expect(welcome).toContainText('Welcome, Jane Doe!');
|
||||
|
||||
const interactionsTab = await page.locator('#tabbutton-storybook-interactions-panel');
|
||||
await expect(interactionsTab).toContainText(/(1)/);
|
||||
await expect(interactionsTab).toContainText(/(\d)/);
|
||||
await expect(interactionsTab).toBeVisible();
|
||||
|
||||
const panel = sbPage.panelContent();
|
||||
@ -37,7 +37,7 @@ test.describe('addon-interactions', () => {
|
||||
await expect(panel).toContainText(/userEvent.click/);
|
||||
await expect(panel).toBeVisible();
|
||||
|
||||
const done = await panel.locator('[data-testid=icon-done]');
|
||||
const done = await panel.locator('[data-testid=icon-done]').nth(0);
|
||||
await expect(done).toBeVisible();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user