-
Notifications
You must be signed in to change notification settings - Fork 75
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
jest -t will create page for all skipped session #698
Comments
@xuanzhaopeng I think this is duplicate #112 |
@xuanzhaopeng could you please check next version? I hope that i found out the way to skip it |
I'm not sure if this would be related. If it isn't, then I can make another issue. I have a beforeAll(() => {
console.log(browser);
await jestPlaywright.resetContext({
storageState: JSON.parse(process.env.STORAGE || ""),
});
}); If I run a command like But if I run a command like I am using version I'll take a look around and see what I can find as well. |
@andrewgremlich i'll take a look |
On the topic of this same issue, when I do run with a |
ahhh, I see what you did @mmarkelov with the most recent commit for 1.6.0-rc3. I see what I kind find. |
Couldn't find anything. There isn't a way to filter out tests that don't match the name pattern? |
@andrewgremlich could you please try 1.6.0-rc4. Hope it will help |
@mmarkelov , I think that did it! Thanks man! And it keeps extra browsers from popping up too. |
I somehow missed your message, looks works fancy! But anyway I will also update it and check it! Thanks a lot |
should be fixed in 1.6.0 |
@mmarkelov I was just trying to use the All the test that are filtered out crashes trying to access For instance, using a testNamePattern that would skip this test:
will crash with "page is not defined" when padding it to the PageObject constructor. I'm on v1.6.1 so definitely after this fix. As a workaround, I defined a global called 'page' to the value null in my jest config, but that's still a bit weird to do. |
Describe the bug
In PlaywrightEnvironment, we init this.global.page in
setup
function, when I dojest -t "my test name"
, it will init page for ever skipped files which consumes a lot of time if I have 50 files but only run 1 file.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Is it possible to init everything in beforeAll? I noticed we could use
skipInitialization
, but how could I initialise programmatically in beforeAll?The text was updated successfully, but these errors were encountered: