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'
|
const LABEL_TEX_LIVE_VERSION = 'TeX Live version'
|
||||||
|
|
||||||
describe('SandboxedCompiles', function () {
|
describe('SandboxedCompiles', function () {
|
||||||
ensureUserExists({ email: 'user@example.com' })
|
|
||||||
|
|
||||||
const enabledVars = {
|
const enabledVars = {
|
||||||
DOCKER_RUNNER: 'true',
|
DOCKER_RUNNER: 'true',
|
||||||
SANDBOXED_COMPILES: 'true',
|
SANDBOXED_COMPILES: 'true',
|
||||||
|
@ -23,7 +21,9 @@ describe('SandboxedCompiles', function () {
|
||||||
startWith({
|
startWith({
|
||||||
pro: true,
|
pro: true,
|
||||||
vars: enabledVars,
|
vars: enabledVars,
|
||||||
|
resetData: true,
|
||||||
})
|
})
|
||||||
|
ensureUserExists({ email: 'user@example.com' })
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
login('user@example.com')
|
login('user@example.com')
|
||||||
})
|
})
|
||||||
|
@ -181,10 +181,6 @@ describe('SandboxedCompiles', function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkUsesDefaultCompiler() {
|
function checkUsesDefaultCompiler() {
|
||||||
beforeEach(function () {
|
|
||||||
login('user@example.com')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should not offer TexLive images and use default compiler', () => {
|
it('should not offer TexLive images and use default compiler', () => {
|
||||||
cy.visit('/project')
|
cy.visit('/project')
|
||||||
createProject('sandboxed')
|
createProject('sandboxed')
|
||||||
|
@ -205,6 +201,10 @@ describe('SandboxedCompiles', function () {
|
||||||
describe('disabled in Server Pro', () => {
|
describe('disabled in Server Pro', () => {
|
||||||
if (isExcludedBySharding('PRO_DEFAULT_2')) return
|
if (isExcludedBySharding('PRO_DEFAULT_2')) return
|
||||||
startWith({ pro: true })
|
startWith({ pro: true })
|
||||||
|
ensureUserExists({ email: 'user@example.com' })
|
||||||
|
beforeEach(function () {
|
||||||
|
login('user@example.com')
|
||||||
|
})
|
||||||
|
|
||||||
checkUsesDefaultCompiler()
|
checkUsesDefaultCompiler()
|
||||||
checkSyncTeX()
|
checkSyncTeX()
|
||||||
|
@ -213,7 +213,11 @@ describe('SandboxedCompiles', function () {
|
||||||
|
|
||||||
describe.skip('unavailable in CE', () => {
|
describe.skip('unavailable in CE', () => {
|
||||||
if (isExcludedBySharding('CE_CUSTOM_1')) return
|
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()
|
checkUsesDefaultCompiler()
|
||||||
checkSyncTeX()
|
checkSyncTeX()
|
||||||
|
|
Loading…
Reference in a new issue