Skip to content

Commit e7874cf

Browse files
committed
Fix tests
1 parent fb9180b commit e7874cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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 OSM Teams')
24+
cy.get('body').should('contain', 'Sign in')
2525
})
2626
})
2727

cypress/e2e/organizations/permissions.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('Organizations page: Permissions', () => {
6767
it('Org is private', () => {
6868
// Unauthenticated user cannot access
6969
cy.visit('/organizations/1')
70-
cy.get('body').should('contain', 'Sign in with OSM Teams')
70+
cy.get('body').should('contain', 'Sign in')
7171

7272
// Non-member cannot access
7373
cy.login(nonMember)
@@ -142,7 +142,7 @@ describe('Organizations page: Permissions', () => {
142142

143143
// Unauthenticated can view org
144144
cy.visit('/organizations/2')
145-
cy.get('body').should('contain', 'Sign in with OSM Teams')
145+
cy.get('body').should('contain', 'Sign in')
146146

147147
// Non-member can access, but cannot view private teams
148148
cy.login(nonMember)

0 commit comments

Comments
 (0)