Skip to content

Commit

Permalink
test(e2e): ensure correct app
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2021
1 parent 69df0cc commit a9ff545
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ describe('Basic email profile with succeeding login flows', () => {
cy.clearAllCookies()

cy.visit(express.login + '?return_to=https://www.ory.sh/')
cy.ensureCorrectApp('express')
})

it('should redirect to return_to when retrying expired flow', () => {
cy.get('input[name="password_identifier"]').type(email.toUpperCase())
cy.get(appPrefix('express')+'input[name="password_identifier"]').type(email.toUpperCase())
cy.get('input[name="password"]').type(password)

cy.longLoginLifespan()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,13 @@ context('Registration success with email profile', () => {
cy.browserReturnUrlOry()
cy.proxy('express')
cy.visit(express.registration + '?return_to=https://www.ory.sh/')
cy.ensureCorrectApp('express')
cy.wait(105)

const email = gen.email()
const password = gen.password()
const website = 'https://www.ory.sh/'

cy.get('input[name="traits"]').should('not.exist')
cy.get(appPrefix('express')+'input[name="traits"]').should('not.exist')
cy.get('input[name="traits.email"]').type(email)
cy.get('input[name="traits.website').type(website)
cy.get('input[name="password"]').type(password)
Expand Down

0 comments on commit a9ff545

Please sign in to comment.