-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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(testing): add playwright generator to convert from executors to plugin #22784
feat(testing): add playwright generator to convert from executors to plugin #22784
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 7760f69. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
46fe18e
to
4f03836
Compare
3a6fb21
to
cf01c5b
Compare
1560703
to
04b04de
Compare
packages/devkit/src/generators/plugin-migrations/plugin-migration-utils.ts
Outdated
Show resolved
Hide resolved
packages/devkit/src/generators/plugin-migrations/plugin-migration-utils.ts
Outdated
Show resolved
Hide resolved
packages/playwright/src/generators/convert-to-inferred/lib/migrate-executor-to-plugin.ts
Outdated
Show resolved
Hide resolved
packages/playwright/src/generators/convert-to-inferred/convert-to-inferred.ts
Outdated
Show resolved
Hide resolved
04b04de
to
48d73af
Compare
2871cbe
to
0bbebe7
Compare
0bbebe7
to
f1c191a
Compare
fe4846f
to
e93a517
Compare
packages/playwright/src/generators/convert-to-inferred/convert-to-inferred.ts
Outdated
Show resolved
Hide resolved
packages/devkit/src/generators/plugin-migrations/plugin-migration-utils.ts
Outdated
Show resolved
Hide resolved
packages/devkit/src/generators/plugin-migrations/plugin-migration-utils.ts
Outdated
Show resolved
Hide resolved
packages/devkit/src/generators/plugin-migrations/plugin-migration-utils.ts
Outdated
Show resolved
Hide resolved
fd36d3e
to
c7c5e57
Compare
c7c5e57
to
3dcb61a
Compare
3dcb61a
to
e3e516a
Compare
8bc2fd1
to
7760f69
Compare
const migrator = new ExecutorToPluginMigrator<PlaywrightPluginOptions>( | ||
tree, | ||
projectGraph, | ||
'@nx/playwright:playwright', | ||
'@nx/playwright/plugin', | ||
(targetName) => ({ targetName, ciTargetName: 'e2e-ci' }), | ||
postTargetTransformer, | ||
createNodes, | ||
options.project | ||
); | ||
await migrator.run(); |
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.
Export a function that does this.
return createdTarget; | ||
} | ||
|
||
async #getCreateNodesResults() { |
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.
Use
projConfigs = await retrieveProjectConfigurations( |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
The only way to migrate a project from playwright executor usage to playwright plugin usage is to do so manually.
Expected Behavior
Add a generator that will convert projects from playwright executor usage to playwright plugin usage
Usage
nx g @nx/playwright:convert-to-inferred --project="myapp-e2e"
// Convert onlymyapp-e2e
from executor to plugin usagenx g @nx/playwright:convert-to-inferred
// Migrate all projectsRelated Issue(s)
Fixes #