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

remove doNotSetUsername param as we no longer set username for test users #1353

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

johnduffell
Copy link
Member

@johnduffell johnduffell commented Jul 2, 2024

This PR follows on when this one https://github.com/guardian/identity/pull/2528 is merged - the cypress tests will fail until then.

Identity no longer will support the doNotSetUsername param because we will never set the username for test users.

(It undoes some of the changes in #1311 which were added when it became no longer possible to set the username more than once)

That flag is removed in the identity PR https://github.com/guardian/identity/pull/2528 as part of the changes to move the test user token from the username/firstname to the email address

@johnduffell johnduffell requested a review from a team as a code owner July 2, 2024 21:46
} as IDAPITestUserOptions,
})
.then((res) => {
return cy.wrap({
emailAddress: finalEmail,
emailAddress: res.body.emailAddress as string,
Copy link
Member Author

Choose a reason for hiding this comment

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

this is similar to this PR guardian/gateway#2791

we need to get the email address from the response, as the email address will be augmented with the test user token

Copy link
Contributor

@rBangay rBangay left a comment

Choose a reason for hiding this comment

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

👍

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