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
chore(tests): allow unknown args in e2e #20026
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
hey @joshuaellis would you be able to take a look at this PR if you have as sec please? I can't see why these changes would cause the e2e tests to fail in this way, the same specs are passing locally for me but the CI has been failing in the same way each time :( |
Just had a thought. Instead of adding the debug option, why don't we just change the package.json script to use I'm not sure how that will interact with the user then adding their own |
Or even simpler solution for now, I'm also fine with flipping it back to (if that's true, I did a quick test and it seemed to work) |
Do you mean to make this the command in package.json I feel like thats worse as you then can't do something like We could remove the I'm not sure I understood your second comment, have I missed something? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I like this way because it keeps our script clearly separate from playwright options. I think we can also revisit later and find a clean way to add back the test:e2e:debug if we want.
I'll take care of making similar changes on CLI tests in the next few weeks as I start to merge them.
What does it do?
Specify debug as a yarg option
Why is it needed?
So we can run things like
yarn test:e2e --domains content-manager -- tests/e2e/tests/content-manager/cloning.spec.ts --debug
&
yarn test:e2e --domains content-manager -- tests/e2e/tests/content-manager/cloning.spec.ts