Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] page.evaluate: Execution context was destroyed, most likely because of a navigation. #39

Closed
yannbf opened this issue Feb 3, 2022 · 0 comments · Fixed by #47
Closed
Labels
bug Something isn't working linear

Comments

@yannbf
Copy link
Member

yannbf commented Feb 3, 2022

Describe the bug

When multiple stories fail in the test runner, the following error occurs:

image

Notice that the first error report is correct, but the second is not.

I suspect the page instance is being shared between tests and if one breaks the rest of the tests will not have access to that instance correctly

Steps to reproduce the behavior

  1. Add a failure to a story play function, e.g.
FindBy.play = async ({ canvasElement }) => {
  const canvas = within(canvasElement);
  await canvas.findByRole('button');
-  await expect(true).toBe(true);
+  await expect(true).toBe(false);
};
  1. Run the test runner
  2. See error
@yannbf yannbf added the bug Something isn't working label Feb 3, 2022
@shilman shilman added the linear label Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linear
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants