diff --git a/server-ce/test/sandboxed-compiles.spec.ts b/server-ce/test/sandboxed-compiles.spec.ts index 19ddc9b5d5..a26799044d 100644 --- a/server-ce/test/sandboxed-compiles.spec.ts +++ b/server-ce/test/sandboxed-compiles.spec.ts @@ -9,8 +9,6 @@ import { beforeWithReRunOnTestRetry } from './helpers/beforeWithReRunOnTestRetry const LABEL_TEX_LIVE_VERSION = 'TeX Live version' describe('SandboxedCompiles', function () { - ensureUserExists({ email: 'user@example.com' }) - const enabledVars = { DOCKER_RUNNER: 'true', SANDBOXED_COMPILES: 'true', @@ -23,7 +21,9 @@ describe('SandboxedCompiles', function () { startWith({ pro: true, vars: enabledVars, + resetData: true, }) + ensureUserExists({ email: 'user@example.com' }) beforeEach(function () { login('user@example.com') }) @@ -181,10 +181,6 @@ describe('SandboxedCompiles', function () { } function checkUsesDefaultCompiler() { - beforeEach(function () { - login('user@example.com') - }) - it('should not offer TexLive images and use default compiler', () => { cy.visit('/project') createProject('sandboxed') @@ -205,6 +201,10 @@ describe('SandboxedCompiles', function () { describe('disabled in Server Pro', () => { if (isExcludedBySharding('PRO_DEFAULT_2')) return startWith({ pro: true }) + ensureUserExists({ email: 'user@example.com' }) + beforeEach(function () { + login('user@example.com') + }) checkUsesDefaultCompiler() checkSyncTeX() @@ -213,7 +213,11 @@ describe('SandboxedCompiles', function () { describe.skip('unavailable in CE', () => { if (isExcludedBySharding('CE_CUSTOM_1')) return - startWith({ pro: false, vars: enabledVars }) + startWith({ pro: false, vars: enabledVars, resetData: true }) + ensureUserExists({ email: 'user@example.com' }) + beforeEach(function () { + login('user@example.com') + }) checkUsesDefaultCompiler() checkSyncTeX()