Skip to content

Commit 70a5c7e

Browse files
committed
Fix Cypress login
1 parent 057aea5 commit 70a5c7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cypress/e2e/auth.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('Check protected routes', () => {
2121
protectedRoutes.forEach((testRoute) => {
2222
it(`Route ${testRoute} needs authentication`, () => {
2323
cy.visit(testRoute)
24-
cy.get('body').should('contain', 'Sign in with openstreetmap')
24+
cy.get('body').should('contain', 'Sign in with OSM Teams')
2525
})
2626
})
2727

cypress/support/commands/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Cypress.Commands.add('login', (userObj) => {
55
cy.wrap(null)
66
.then(() => {
77
return getSessionToken(
8-
{ ...userObj, sub: userObj.id },
8+
{ ...userObj, userId: userObj.id },
99
Cypress.env('NEXTAUTH_SECRET')
1010
)
1111
})

0 commit comments

Comments
 (0)