Skip to content

Commit

Permalink
test(e2e): clean up helper
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2021
1 parent 8fafc40 commit 4806add
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e/cypress/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ export const email = () => Math.random().toString(36) + '@ory.sh'

export const password = () => Math.random().toString(36)

export const assertVerifiableAddress = ({isVerified, email}) => ({identity}) => {
export const assertVerifiableAddress = ({isVerified, email}) => (session) => {
const {identity} = session
expect(identity).to.have.property('verifiable_addresses')
expect(identity.verifiable_addresses).to.have.length(1)

Expand Down Expand Up @@ -38,7 +39,7 @@ export const MOBILE_URL = (Cypress.env('mobile_url') || 'http://localhost:4457')
/\/$/,
''
)
export const SPA_URL = (Cypress.env('react_url') || 'http://localhost:4458').replace(
export const SPA_URL = (Cypress.env('react_url') || 'http://localhost:4455').replace(
/\/$/,
''
)
Expand Down

0 comments on commit 4806add

Please sign in to comment.