mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[saas-e2e] harden recompiling (#28514)
* [saas-e2e] harden recompiling * [server-ce] import changes from SaaS e2e tests GitOrigin-RevId: 9b86ed864457b068b8dded94a7e12658a047aac2
This commit is contained in:
@@ -22,20 +22,19 @@ describe('editor', () => {
|
||||
let projectName: string
|
||||
let projectId: string
|
||||
let recompile: () => void
|
||||
let waitForCompileRateLimitCoolOff: (fn: () => void) => void
|
||||
let waitForCompile: (fn: () => void) => void
|
||||
beforeWithReRunOnTestRetry(function () {
|
||||
projectName = `project-${uuid()}`
|
||||
login(USER)
|
||||
createProject(projectName, { type: 'Example project', open: false }).then(
|
||||
id => (projectId = id)
|
||||
)
|
||||
;({ recompile, waitForCompileRateLimitCoolOff } =
|
||||
prepareWaitForNextCompileSlot())
|
||||
;({ recompile, waitForCompile } = prepareWaitForNextCompileSlot())
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
login(USER)
|
||||
waitForCompileRateLimitCoolOff(() => {
|
||||
waitForCompile(() => {
|
||||
openProjectById(projectId)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user