Merge pull request #31695 from overleaf/bg-Jenkins-build-failure-Server-Pro-E2E-Tests-1029

reload server cleanly in project sharing tests

GitOrigin-RevId: 1232d870b69a54994441a54da33c93b78d393f22
This commit is contained in:
Brian Gough
2026-02-24 11:11:20 +00:00
committed by Copybot
parent b7f5344859
commit 892b52c2e9

View File

@@ -430,7 +430,11 @@ describe('Project Sharing', function () {
// block. The `before` hook always runs prior to the `beforeEach` hook.
// Set up retained access before disabling link sharing
before(function () {
beforeWithReRunOnTestRetry(() => {
// undo the link sharing restriction before joining via link-sharing below
cy.wrap(reloadWith({ withDataDir: true, pro: true }), {
timeout: STARTUP_TIMEOUT,
})
// Set up retained viewer access
login(retainedViewerEmail)
openProjectViaLinkSharingAsUser(