Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Sep 19, 2024
1 parent 440d263 commit 61adc24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ context("Registration error messages with code method", () => {

cy.submitCodeForm(app)

cy.get('[data-testid="ui/message/1040005"]').should(
"contain",
"An email containing a code has been sent to the email address you provided",
)
cy.get('[data-testid="ui/message/1040005"]').should("be.visible")

cy.get(Selectors[app]["code"]).type("123456")
cy.submitCodeForm(app)
Expand All @@ -90,10 +87,7 @@ context("Registration error messages with code method", () => {
cy.get(Selectors[app]["tos"]).click()

cy.submitCodeForm(app)
cy.get('[data-testid="ui/message/1040005"]').should(
"contain",
"A code has been sent to the address(es) you provided",
)
cy.get('[data-testid="ui/message/1040005"]').should("be.visible")

if (app !== "express") {
// the mobile app doesn't render hidden fields in the DOM
Expand Down Expand Up @@ -131,10 +125,7 @@ context("Registration error messages with code method", () => {
cy.get(Selectors[app]["tos"]).click()

cy.submitCodeForm(app)
cy.get('[data-testid="ui/message/1040005"]').should(
"contain",
"A code has been sent to the address(es) you provided",
)
cy.get('[data-testid="ui/message/1040005"]').should("be.visible")

cy.removeAttribute([Selectors[app]["code"]], "required")

Expand Down Expand Up @@ -200,10 +191,7 @@ context("Registration error messages with code method", () => {
cy.get(Selectors[app]["tos"]).click()

cy.submitCodeForm(app)
cy.get('[data-testid="ui/message/1040005"]').should(
"contain",
"A code has been sent to the address(es) you provided",
)
cy.get('[data-testid="ui/message/1040005"]').should("be.visible")

cy.getRegistrationCodeFromEmail(email).then((code) => {
cy.get(Selectors[app]["code"]).type(code)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ context("Registration success with code method", () => {

cy.submitProfileForm(app)
cy.submitCodeForm(app)
cy.get('[data-testid="ui/message/1040005"]').should(
"contain",
"A code has been sent to the address(es) you provided",
)
cy.get('[data-testid="ui/message/1040005"]').should("be.visible")

cy.getRegistrationCodeFromEmail(email).then((code) =>
cy.wrap(code).as("code1"),
Expand Down Expand Up @@ -187,10 +184,7 @@ context("Registration success with code method", () => {
cy.submitProfileForm(app)

cy.submitCodeForm(app)
cy.get('[data-testid="ui/message/1040005"]').should(
"contain",
"A code has been sent to the address(es) you provided",
)
cy.get('[data-testid="ui/message/1040005"]').should("be.visible")

cy.getRegistrationCodeFromEmail(email).should((code) => {
cy.get(Selectors[app]["code"]).type(code)
Expand Down Expand Up @@ -234,10 +228,7 @@ context("Registration success with code method", () => {
cy.submitProfileForm(app)

cy.submitCodeForm(app)
cy.get('[data-testid="ui/message/1040005"]').should(
"contain",
"A code has been sent to the address(es) you provided",
)
cy.get('[data-testid="ui/message/1040005"]').should("be.visible")

cy.getRegistrationCodeFromEmail(email).should((code) => {
cy.get(Selectors[app]["code"]).type(code)
Expand Down Expand Up @@ -305,10 +296,7 @@ context("Registration success with code method", () => {

cy.submitProfileForm(app)
cy.submitCodeForm(app)
cy.get('[data-testid="ui/message/1040005"]').should(
"contain",
"A code has been sent to the address(es) you provided",
)
cy.get('[data-testid="ui/message/1040005"]').should("be.visible")

// intentionally use email 1 to sign up for the account
cy.getRegistrationCodeFromEmail(email, { expectedCount: 1 }).should(
Expand Down

0 comments on commit 61adc24

Please sign in to comment.