From 6c2a5a43d77e379db575b1165283b726725ad884 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Tue, 2 Jul 2024 09:35:08 +0200 Subject: [PATCH] Merge pull request #19227 from overleaf/jpa-sharing-fix [server-ce] keep up with renaming of button in the share modal GitOrigin-RevId: e08593078e3789832400884c0b2c04b94f15c837 --- server-ce/test/project-sharing.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server-ce/test/project-sharing.spec.ts b/server-ce/test/project-sharing.spec.ts index c545e09706..98e23ea0a2 100644 --- a/server-ce/test/project-sharing.spec.ts +++ b/server-ce/test/project-sharing.spec.ts @@ -53,7 +53,7 @@ describe('Project Sharing', function () { function shareProjectByEmailAndAcceptInvite( email: string, - level: 'Read Only' | 'Can Edit' + level: 'Read Only' | 'Can edit' ) { login('user@example.com') cy.visit('/project') @@ -63,7 +63,7 @@ describe('Project Sharing', function () { cy.get('input').type(`${email},`) cy.get('input') .parents('form') - .within(() => cy.findByText('Can Edit').parent().select(level)) + .within(() => cy.findByText('Can edit').parent().select(level)) cy.findByText('Share').click({ force: true }) }) @@ -194,7 +194,7 @@ describe('Project Sharing', function () { ensureUserExists({ email }) beforeWithReRunOnTestRetry(function () { - shareProjectByEmailAndAcceptInvite(email, 'Can Edit') + shareProjectByEmailAndAcceptInvite(email, 'Can edit') }) it('should grant the collaborator write access', () => {