Skip to content

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

Open
johnduffell wants to merge 2 commits into
mainfrom
jd-remove-unneeded-param
Open

remove doNotSetUsername param as we no longer set username for test users#1353
johnduffell wants to merge 2 commits into
mainfrom
jd-remove-unneeded-param

Conversation

@johnduffell

@johnduffell johnduffell commented Jul 2, 2024

Copy link
Copy Markdown
Member

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
.then((res) => {
return cy.wrap({
emailAddress: finalEmail,
emailAddress: res.body.emailAddress as string,

Copy link
Copy Markdown
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

@rBangay rBangay left a comment

Copy link
Copy Markdown
Contributor

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