Skip to content

Commit

Permalink
lets try again
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Oct 21, 2023
1 parent 688bc9c commit 8d0f62b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/components/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,10 @@ patch: ${JSON.stringify(
// console.info("All scripts finished!")
this.send_queued_bond_changes()
})

// @ts-ignore This is for tests
document.body._js_init_set = this.js_init_set

/** Is the notebook ready to execute code right now? (i.e. are no cells queued or running?) */
this.notebook_is_idle = () => {
return !(
Expand Down
3 changes: 3 additions & 0 deletions test/frontend/helpers/pluto.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ export const waitForPlutoToCalmDown = async (/** @type {puppeteer.Page} */ page,
() =>
//@ts-ignore
document?.body?._update_is_ongoing === false &&
//@ts-ignore
document?.body?._js_init_set?.size === 0 &&
document?.body?.classList?.contains("loading") === false &&
document?.querySelector(`#process-status-tab-button.something_is_happening`) == null &&
document?.querySelector(`pluto-cell.running, pluto-cell.queued`) === null,
options
Expand Down

0 comments on commit 8d0f62b

Please sign in to comment.