mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 19:51:08 +08:00
Update manager.spec.ts to replace locator IDs for addon panel visibility checks
This commit is contained in:
parent
9649d370f8
commit
8675b33de1
@ -243,14 +243,14 @@ test.describe('Manager UI', () => {
|
||||
await sbPage.page.locator('[title="Open addon panel"]').click();
|
||||
|
||||
// panel is open
|
||||
await expect(sbPage.page.locator('#list-item-addon-controls')).toBeVisible();
|
||||
await expect(sbPage.page.locator('#tabbutton-addon-controls')).toBeVisible();
|
||||
|
||||
// close panel
|
||||
await sbPage.page.locator('[title="Close addon panel"]').click();
|
||||
|
||||
// panel is closed
|
||||
await expect(mobileNavigationHeading).toHaveText('Example/Button/Secondary');
|
||||
await expect(sbPage.page.locator('#list-item-addon-controls')).toBeHidden();
|
||||
await expect(sbPage.page.locator('#tabbutton-addon-controls')).toBeHidden();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user