[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:
Jakob Ackermann
2025-09-16 16:22:36 +02:00
committed by Copybot
parent a9a28a13f5
commit a13fca15d3
10 changed files with 337 additions and 242 deletions

View File

@@ -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)
})
})