Skip to content

Commit

Permalink
Testing 9
Browse files Browse the repository at this point in the history
  • Loading branch information
THEBOSS0369 committed Dec 28, 2024
1 parent 1ffee45 commit d4e5702
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/e2e/spec/tonedear.e2e.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,19 @@ function runTests (driver, modes) {
// return isLoaded;
// }, 30000, 'ZIM file failed to load');
await driver.sleep(1300);

// In JQuery mode, the app warns the user that there is active content it cannot run, so we test for this and dismiss
it('Checking active content warning', async function () {
const activeContentWarning = await driver.wait(async function () {
const element = await driver.findElement(By.id('activeContent'));
return await element.isDisplayed();
}, 2000).catch(() => false);
if (mode === 'jquery') {
assert.ok(true, activeContentWarning);
} else {
assert.equal(false, activeContentWarning);
}
});
}
await driver.wait(
until.elementLocated(By.id('articleContent')),
Expand Down

0 comments on commit d4e5702

Please sign in to comment.