Vicky Koblinski
Vicky Koblinski
I ran into a similar problem. There's not enough information here to tell if it's the same, but do you see a different number of line counts between the two...
`await jestPlaywright.resetPage();` < This could be your problem. I was having the same issue, and it ended up being because I was refreshing the page. This error didn't come up...
It turned out that `globalThis.__STORYBOOK_PREVIEW__.storyStore.loadStory({ storyId })` contained circular dependencies and Playwright doesn't allow you to return Js objects with circular dependencies, which is why I was getting undefined. I'm...
I just want to share that this is possible now with the [getStoryContext](https://github.com/storybookjs/test-runner/blob/cb53eb45598fc03b1504a89c2d31916e20b8236a/src/playwright/hooks.ts#L27)/page.evaluate. I'm using it to get `storyContext.parameters.viewport.defaultViewport` and then calling `page.setViewportSize(devices[storyContext.parameters.viewport.defaultViewport].viewport)` where devices is a shared list between...
Oops, I dupped this issue here https://github.com/chakra-ui/chakra-ui/issues/6922
I believe I've identified the problem. https://github.com/chakra-ui/chakra-ui/blob/main/packages/color-mode/src/color-mode-provider.tsx#L103-L125 The color mode is set inside a useSafeLayoutEffect, which means that the theme can't get set server side at all since these hooks...
I made substantial progress on this: https://codesandbox.io/s/priceless-night-6f0292?file=/pages/_document.js __document.tsx ```tsx import { ColorMode } from "@chakra-ui/color-mode"; import { ColorModeScript } from "@chakra-ui/react"; import Document, { Html, Head, Main, NextScript, DocumentContext }...