Skip to content

Commit

Permalink
Try to fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Dec 8, 2023
1 parent a9f51b5 commit 08bfaf5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/e2e/spec/gutenberg_ro.e2e.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ function runTests (driver, modes) {
// Run tests twice, once in serviceworker mode and once in jquery mode
it('Load Kiwix JS and check title', async function () {
await driver.get('http://localhost:' + port + '/dist/www/index.html?noPrompts=true');
// Pause for 1.3 seconds to allow the app to load
await driver.sleep(1300);
// Issue a reload to ensure that the app is in the correct mode
await driver.navigate().refresh();
// Pause for 800 milliseconds to allow the app to reload
await driver.sleep(800);
const title = await driver.getTitle();
assert.equal('Kiwix', title);
});
Expand Down

0 comments on commit 08bfaf5

Please sign in to comment.