mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Update addon-viewport test to navigate to the correct story path for globals instead of parameters
This commit is contained in:
parent
353fd6438a
commit
c49c67636e
@ -46,7 +46,7 @@ test.describe('addon-viewport', () => {
|
||||
const sbPage = new SbPage(page, expect);
|
||||
|
||||
// Story parameters/selected is set to small mobile
|
||||
await sbPage.navigateToStory('addons/viewport/parameters', 'selected');
|
||||
await sbPage.navigateToStory('addons/viewport/globals', 'selected');
|
||||
|
||||
// Measure the original dimensions of previewRoot
|
||||
const originalDimensions = await sbPage.getCanvasBodyElement().boundingBox();
|
||||
|
Loading…
x
Reference in New Issue
Block a user