[server-pro] tests: avoid opening editor if not needed for test (#23875)

* [server-pro] tests: avoid opening editor if not needed for test

* [server-pro] tests: use intercept to avoid opening editor page

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>

* [server-pro] tests: use times option in intercept

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>

---------

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>
GitOrigin-RevId: 9530d1f5b06766fec70631da47d8b1049b59ead5
This commit is contained in:
Jakob Ackermann
2025-02-26 09:05:20 +00:00
committed by Copybot
co-authored by Alf Eaton
parent 555f3700c7
commit 3cbfcfe75b
7 changed files with 54 additions and 24 deletions
+3 -1
View File
@@ -122,7 +122,7 @@ describe('git-bridge', function () {
let projectName: string
beforeEach(() => {
projectName = uuid()
createProject(projectName).as('projectId')
createProject(projectName, { open: false }).as('projectId')
})
it('should expose r/w interface to owner', () => {
@@ -154,6 +154,7 @@ describe('git-bridge', function () {
})
it('should expose r/w interface to link-sharing r/w collaborator', () => {
openProjectByName(projectName)
enableLinkSharing().then(({ linkSharingReadAndWrite }) => {
const email = 'collaborator-link-rw@example.com'
login(email)
@@ -168,6 +169,7 @@ describe('git-bridge', function () {
})
it('should expose r/o interface to link-sharing r/o collaborator', () => {
openProjectByName(projectName)
enableLinkSharing().then(({ linkSharingReadOnly }) => {
const email = 'collaborator-link-ro@example.com'
login(email)