Skip to content

Commit

Permalink
fix(e2e): minor ui text mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
Benehiko committed Sep 7, 2023
1 parent 598d69c commit 9d5b8fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
13 changes: 3 additions & 10 deletions test/e2e/cypress/integration/profiles/email/login/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,9 @@ context("UI tests using the email profile", () => {
.parent()
.should("contain.text", "ID")

if (app === "express") {
cy.get('[data-testid="node/input/password"]').should(
"contain.text",
"Password",
)
} else {
cy.get('input[name="password"]')
.parent()
.should("contain.text", "Password")
}
cy.get('input[name="password"]')
.parentsUntil("label")
.should("contain.text", "Password")
cy.get('button[value="password"]').should("contain.text", "Sign in")
})

Expand Down
15 changes: 5 additions & 10 deletions test/e2e/cypress/integration/profiles/email/settings/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,11 @@ context("Settings errors with email profile", () => {
cy.get('input[name="traits.website"]')
.parent()
.should("contain.text", "Your website")
if (app === "express") {
cy.get('[data-testid="node/input/password"]').should(
"contain.text",
"Password",
)
} else {
cy.get('input[name="password"]')
.parent()
.should("contain.text", "Password")
}

cy.get('input[name="password"]')
.parentsUntil("label")
.should("contain.text", "Password")

cy.get('button[value="profile"]').should("contain.text", "Save")
cy.get('button[value="password"]').should("contain.text", "Save")
})
Expand Down
1 change: 0 additions & 1 deletion test/e2e/cypress/integration/profiles/mfa/totp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ context("2FA TOTP", () => {
expect(loc.search).to.not.include("aal")
expect(loc.search).to.not.include("refresh")
})
cy.get("h2").contains(/Sign in/i)
cy.noSession()
})

Expand Down

0 comments on commit 9d5b8fd

Please sign in to comment.