Skip to content

Commit

Permalink
tests(e2e): ensure only linked providers are shown during reauth
Browse files Browse the repository at this point in the history
  • Loading branch information
Saancreed committed Nov 6, 2023
1 parent 6657cd7 commit 6dbc940
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,19 @@ context("Social Sign In Settings Success", () => {
hydraReauthFails()
})

it("should show only linked providers during reauth", () => {
cy.shortPrivilegedSessionTime()

cy.get('input[name="password"]').type(gen.password())
cy.get('[value="password"]').click()

cy.location("pathname").should("equal", "/login")

cy.get('[value="hydra"]').should("exist")
cy.get('[value="google"]').should("not.exist")
cy.get('[value="github"]').should("not.exist")
})

it("settings screen stays intact when the original sign up method gets removed", () => {
const expectSettingsOk = () => {
cy.get('[value="google"]', { timeout: 1000 })
Expand Down

0 comments on commit 6dbc940

Please sign in to comment.