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

fix(e2e): Move submissionEmail to createTeam args #3613

Merged
merged 11 commits into from
Sep 4, 2024

Conversation

RODO94
Copy link
Contributor

@RODO94 RODO94 commented Sep 3, 2024

Moved submissionEmail into the args of createTeam() similar to the handling of referenceCode.

export const setup = async () => {
  await setUpMocks();
  const teamId = await createTeam({
++    settings: { referenceCode: "ABC", submissionEmail: TEST_EMAIL },
  });
  const userId = await createUser();
  await setupMockBopsSubmissionUrl(teamId);

  const world = { teamId, userId };

  return world;
};

This change comes in line with changes in planx-core to the createTeam mutation: theopensystemslab/planx-core#499

RODO94 added a commit to theopensystemslab/planx-core that referenced this pull request Sep 3, 2024
Remove `$submissionEmail` variable type from mutation to allow planx-new
to add `submissionEmail` as argument passed into `createTeam()`

This fix enables the planx-new e2e regression fix.

theopensystemslab/planx-new#3613
@RODO94 RODO94 force-pushed the rory/fix-submission-email-revert branch from 8f3ed66 to 3ead0d2 Compare September 3, 2024 10:36
Copy link

github-actions bot commented Sep 3, 2024

Pizza

Deployed 65f9fc3 to https://3613.planx.pizza.

Useful links:

@RODO94
Copy link
Contributor Author

RODO94 commented Sep 3, 2024

Ended up rebasing to add in the changes we reverted before, so it threw off all the tests. Reverted changes have now been re-added.

@RODO94 RODO94 marked this pull request as ready for review September 3, 2024 14:15
@RODO94 RODO94 requested a review from a team September 3, 2024 14:16
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for additionally running regression tests against this branch.

Please address empty row in package.json before merging, but otherwise good to go 👍

"@opensystemslab/map": "1.0.0-alpha.2",
"@opensystemslab/planx-core": "git+https://github.com/theopensystemslab/planx-core#d46df8d",

Copy link
Member

Choose a reason for hiding this comment

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

Can you please remove this empty line?

@RODO94 RODO94 merged commit 044258e into main Sep 4, 2024
2 checks passed
@RODO94 RODO94 deleted the rory/fix-submission-email-revert branch September 4, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants