mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +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);
|
const sbPage = new SbPage(page, expect);
|
||||||
|
|
||||||
// Story parameters/selected is set to small mobile
|
// 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
|
// Measure the original dimensions of previewRoot
|
||||||
const originalDimensions = await sbPage.getCanvasBodyElement().boundingBox();
|
const originalDimensions = await sbPage.getCanvasBodyElement().boundingBox();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user