Improve bake test tolerance

This commit is contained in:
LanYunDev 2024-12-29 20:29:35 +08:00
parent 286836d183
commit 891e12ae47
No known key found for this signature in database
GPG key ID: 2261FDD45717933F

View file

@ -52,13 +52,13 @@ function setInput(browser, input, type=true) {
function bake(browser) {
browser
// Ensure we're not currently busy
.waitForElementNotVisible("#output-loader", 5000)
.waitForElementNotVisible("#output-loader", 6000)
.expect.element("#bake span").text.to.equal("BAKE!");
browser
.click("#bake")
.waitForElementNotVisible("#stale-indicator", 5000)
.waitForElementNotVisible("#output-loader", 5000);
.waitForElementNotVisible("#stale-indicator", 6000)
.waitForElementNotVisible("#output-loader", 6000);
}
/** @function