-
Notifications
You must be signed in to change notification settings - Fork 74
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
feat: add toggle for always recreating global setup #524
Conversation
@@ -279,6 +280,12 @@ function htmlForWebview(vscode: vscodeTypes.VSCode, extensionUri: vscodeTypes.Ur | |||
${vscode.l10n.t('Show trace viewer')} | |||
</label> | |||
</div> | |||
<div> |
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.
We should move below to the rareActions as it is unlikely that the user needs it.
|
||
if (type === 'setup') { | ||
if (this._embedder.settingsModel.dontReuseGlobalSetup.get()) | ||
return true; |
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.
But even with the rename, I'm not sure what the sematic is. I'd say that the runGlobalSetup/runGlobalTeardown actions should be disabled when I opt into the runGlobalSetupOnEachRun engages.
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.
I made them hidden instead of disabling, so we remove some more unneeded visual clutter.
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.
addressed feedback!
Closes microsoft/playwright#32121.
Adds an opt-in checkbox called "Don't reuse global setup". When enabled, we'll re-run global setup before every test run.