Comments (4)
AFAIK the maxWorkers determines how many pages get created. these pages get reused throughout the lifetime of the test run, unless there is a failing test. at that point, the page gets reset. How many workers are you using?
from test-runner.
Github runners have two cores, so two I guess two workers.
these pages get reused throughout the lifetime of the test run
Are you sure about that? I see output like this, which makes me think that each story needs to load a new page
page loaded in 782ms.
PASS browser: chromium src/components/patterns/snippet/Snippet.stories.tsx
page loaded in 798ms.
PASS browser: chromium src/components/atoms/forms/textarea/Textarea.stories.tsx
page loaded in 788ms.
PASS browser: chromium src/components/atoms/buttons/inline-button/InlineButton.stories.tsx
page loaded in 787ms.
PASS browser: chromium src/components/patterns/page-header/PageHeader.stories.tsx
page loaded in 768ms.
PASS browser: chromium src/components/atoms/forms/label/Label.stories.tsx
from test-runner.
Hmm can confirm that it opens a new browser for each story file. @yannbf this sounds like a bug to me. WDYT?
from test-runner.
I think this might just be the way that the jest runner for playwright works. I believe a new page is loaded each time using https://playwright.dev/docs/api/class-page#page-goto. I've opened playwright-community/jest-playwright#791 asking if perhaps there's a way to avoid that full page load each time.
from test-runner.
Related Issues (20)
- [bug] coverage no longer report in terminal HOT 2
- [bug] Add support for passWithNoTests
- [question] Error: Cannot find module 'detect-package-manager' HOT 1
- [bug] test-runner doesn't execute in the project folder HOT 2
- CLI tests don't run using chromium browser with error message "invalid version" HOT 1
- [bug] --failOnConsole not working with Mock Service Worker
- [bug] Issue with open HTTP connections: Jest did not exit
- Skip or Exclude not working on play-tests HOT 2
- How to specify Chromium path HOT 3
- Installation Error with NPM HOT 2
- [question] Any plans to move or support vitest?
- [bug] Doesn't work with git worktrees HOT 1
- [Bug]: Type of canvasElement from getStoryContext is unknown HOT 2
- [question] Any plans to support v8.0.0???? HOT 1
- Test runner rendering next story before previous tests finish
- [bug] `getStoryContext` is missing `playFunction` HOT 1
- [bug] preVisit accesses the story store before the index is ready HOT 8
- [bug] the --outputFile parameter is not working when --junit parameter is issued HOT 4
- [bug] Storybook Test Runner Timeout with waitForPageReady HOT 2
- [feature request] Make tags available in the test context HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from test-runner.