Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamicut committed Jun 9, 2023
1 parent fb9180b commit e7874cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/auth.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Check protected routes', () => {
protectedRoutes.forEach((testRoute) => {
it(`Route ${testRoute} needs authentication`, () => {
cy.visit(testRoute)
cy.get('body').should('contain', 'Sign in with OSM Teams')
cy.get('body').should('contain', 'Sign in')
})
})

Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/organizations/permissions.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Organizations page: Permissions', () => {
it('Org is private', () => {
// Unauthenticated user cannot access
cy.visit('/organizations/1')
cy.get('body').should('contain', 'Sign in with OSM Teams')
cy.get('body').should('contain', 'Sign in')

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

// Unauthenticated can view org
cy.visit('/organizations/2')
cy.get('body').should('contain', 'Sign in with OSM Teams')
cy.get('body').should('contain', 'Sign in')

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

0 comments on commit e7874cf

Please sign in to comment.