From e7874cff0d56cfce7ffdea3cd97ae136cd1d8c63 Mon Sep 17 00:00:00 2001 From: Marc Farra Date: Fri, 9 Jun 2023 17:23:03 -0400 Subject: [PATCH] Fix tests --- cypress/e2e/auth.cy.js | 2 +- cypress/e2e/organizations/permissions.cy.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/auth.cy.js b/cypress/e2e/auth.cy.js index 3b1cf6cb..57290eaf 100644 --- a/cypress/e2e/auth.cy.js +++ b/cypress/e2e/auth.cy.js @@ -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') }) }) diff --git a/cypress/e2e/organizations/permissions.cy.js b/cypress/e2e/organizations/permissions.cy.js index dca3237a..ec3f5d1f 100644 --- a/cypress/e2e/organizations/permissions.cy.js +++ b/cypress/e2e/organizations/permissions.cy.js @@ -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) @@ -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)