Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgxvii committed Aug 13, 2024
1 parent aca3ecd commit 5beee61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
npm run start &
npm run test
env:
ORY_KRATOS_URL: http://localhost:4455
ORY_KRATOS_URL: http://localhost:4433
16 changes: 3 additions & 13 deletions cypress/integration/pages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,10 @@ context("Ory Kratos pages", () => {
cy.get('[name="method"]').should("exist")
})

it("can load the registration page", () => {
it("can load the registration page if eligibile", () => {
sessionStorage.setItem("eligible", "")
cy.visit("/registration")
cy.get('[name="traits.email"]').type(email)
cy.get('[name="password"]').type(password)
cy.get('[name="method"]').click()
cy.location("pathname").should("eq", "/verification")

cy.visit("/")
cy.get('[data-testid="logout"]').should(
"have.attr",
"aria-disabled",
"false",
)
cy.get('[data-testid="session-content"]').should("contain.text", email)
cy.get('[name="traits.email"]').should("exist")
})

it("can load the verification page", () => {
Expand Down

0 comments on commit 5beee61

Please sign in to comment.