Skip to content

Commit

Permalink
Extended time for autoBake to trigger in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
n1474335 committed Apr 25, 2024
1 parent 48f3bf9 commit f0a49fe
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions tests/browser/01_io.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,25 +173,20 @@ module.exports = {

browser.waitForElementVisible("#stale-indicator");

browser.expect.element("#auto-bake").to.not.be.selected;

// Enable previously disabled autobake
browser.expect.element("#auto-bake").to.not.be.selected;
browser.click("#auto-bake-label");
browser.expect.element("#auto-bake").to.be.selected.before(1000);

browser.waitUntil(() => {
return browser.expect.element("#auto-bake").to.be.selected;
}, 1000);

// Add content to the input
browser.pause(100);
browser.sendKeys("#input-text .cm-content", "1");

browser.waitForElementVisible("#output-loader");

browser.pause(500);

// Make another change while the previous input is being baked
browser.sendKeys("#input-text .cm-content", "2");

browser
.sendKeys("#input-text .cm-content", "2")
.waitForElementNotVisible("#stale-indicator")
.waitForElementNotVisible("#output-loader");

Expand All @@ -200,6 +195,7 @@ module.exports = {

// Turn autobake off again
browser.click("#auto-bake-label");
browser.expect.element("#auto-bake").to.not.be.selected.before(1000);
},

"Special content": browser => {
Expand Down

0 comments on commit f0a49fe

Please sign in to comment.