mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #32996 from overleaf/copilot/fix-race-condition-in-stopcompile
Stabilize stopCompile Cypress helper by waiting for enabled “Stop compilation” action GitOrigin-RevId: 16997aaccd8d65d5ff0a0a1af73a0bf5d6803832
This commit is contained in:
@@ -9,7 +9,10 @@ export function stopCompile(options: { delay?: number } = {}) {
|
||||
cy.wait(delay)
|
||||
cy.log('Stop compile')
|
||||
cy.findByRole('button', { name: 'Toggle compile options menu' }).click()
|
||||
cy.findByRole('menuitem', { name: 'Stop compilation' }).click()
|
||||
cy.findByRole('menuitem', { name: 'Stop compilation' })
|
||||
.should('not.have.class', 'disabled')
|
||||
.and('not.have.attr', 'aria-disabled', 'true')
|
||||
.click()
|
||||
}
|
||||
|
||||
export function prepareWaitForNextCompileSlot() {
|
||||
|
||||
Reference in New Issue
Block a user