This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
// headless iframe size that @storybook/test-runner navigates to directly.
|
||||
export default {
|
||||
async preVisit(page, context) {
|
||||
if (context.id?.startsWith('pages-catalogpage--mobile')) {
|
||||
await page.setViewportSize({ width: 375, height: 900 });
|
||||
if (context.id?.includes('--enlarged')) {
|
||||
await page.setViewportSize({ width: 640, height: 900 });
|
||||
} else if (context.id?.includes('--mobile')) {
|
||||
await page.setViewportSize({ width: 320, height: 900 });
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user