mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
[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:
committed by
Copybot
co-authored by
Alf Eaton
parent
555f3700c7
commit
3cbfcfe75b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user