Skip to content
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 metadata to playwright targets #22768

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

AgentEnder
Copy link
Member

Current Behavior

Only cypress nodes have metadata

Expected Behavior

Playwright nodes also have metadata

Related Issue(s)

Fixes #

@AgentEnder AgentEnder requested a review from a team as a code owner April 10, 2024 17:06
Copy link

vercel bot commented Apr 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 9:31pm

targets[targetName] = {
...ciBaseTargetConfig,
command: `${baseTargetConfig.command} ${relativeToProjectRoot}`,
command: `${baseTargetConfig.command} ${relativeSpecFilePath}`,
metadata: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this.

@@ -187,10 +196,15 @@ async function buildPlaywrightTargets(
inputs: ciBaseTargetConfig.inputs,
outputs: ciBaseTargetConfig.outputs,
dependsOn,
metadata: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this.

@@ -88,7 +83,7 @@ export const createNodes: CreateNodes<PlaywrightPluginOptions> = [
context
));

calculatedTargets[hash] = targets;
calculatedTargets[hash] = { targets, metadata };

return {
projects: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metadata needs to be added here?

@AgentEnder AgentEnder force-pushed the feat/playwright-metadata branch 2 times, most recently from 4a3e829 to cc8d64d Compare April 10, 2024 19:46
"metadata": {
"targetGroups": {
"E2E (CI)": [
"e2e-ci",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be other targets here as well.

@FrozenPandaz FrozenPandaz enabled auto-merge (squash) April 10, 2024 21:30
@FrozenPandaz FrozenPandaz merged commit c8f179d into nrwl:master Apr 10, 2024
6 checks passed
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants