Skip to content

Commit

Permalink
test: fix consent initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi committed Oct 22, 2024
1 parent 312e361 commit c748652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 3 additions & 5 deletions apps/consent/cypress/e2e/login-email.cy.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import { testData } from "../support/test-config"

describe("Account ID Test", () => {
before(() => {
it("Login email Test", () => {
const email = testData.EMAIL

cy.flushRedis()
cy.visit(testData.AUTHORIZATION_URL)
cy.location("search").should((search) => {
const params = new URLSearchParams(search)
expect(params.has("login_challenge")).to.be.true
})
})

it("Login email Test", () => {
const email = testData.EMAIL

cy.get("[data-testid=sign_in_with_phone_btn]")
.should("exist")
Expand Down
4 changes: 1 addition & 3 deletions apps/consent/cypress/e2e/login-phone.cy.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { testData } from "../support/test-config"

describe("Account ID Test", () => {
before(() => {
it("Login Phone Test", () => {
cy.flushRedis()
cy.visit(testData.AUTHORIZATION_URL)
cy.location("search").should((search) => {
const params = new URLSearchParams(search)
expect(params.has("login_challenge")).to.be.true
})
})

it("Login Phone Test", () => {
cy.get("[data-testid=sign_in_with_email_btn]")
.should("exist")
.should("be.visible")
Expand Down

0 comments on commit c748652

Please sign in to comment.