mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Merge pull request #20162 from overleaf/jpa-sandboxed-e2e-local
[server-pro] fix re-running of sandboxed compiles e2e tests GitOrigin-RevId: 5c23b1018ffc8abc0af868100c8a600d2ed10267
This commit is contained in:
parent
831a40390a
commit
0fff0a9e5b
1 changed files with 11 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue