Skip to content

Commit

Permalink
Merge branch 'main' into Remove-unnecessary-initOrKeepAliveServiceWorker
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid authored Nov 16, 2023
2 parents 9572170 + 870eba1 commit b6d4d2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions tests/e2e/spec/gutenberg_ro.e2e.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function runTests (driver, modes) {
// Loads the ZIM archive for the mode if the mode is not skipped
it('Load Modern zim file', async function () {
if (!serviceWorkerAPI) {
console.log('\x1b[33m%s\x1b[0m', ' Test skipped.');
console.log('\x1b[33m%s\x1b[0m', ' Following test skipped:');
return;
}
// Wait until files have loaded
Expand Down Expand Up @@ -219,7 +219,7 @@ function runTests (driver, modes) {

it('Sorting books by popularity', async function () {
if (isJqueryMode) {
console.log('\x1b[33m%s\x1b[0m', ' Test skipped.');
console.log('\x1b[33m%s\x1b[0m', ' Following test skipped:');
return;
}
await driver.switchTo().frame('articleContent');
Expand All @@ -233,7 +233,7 @@ function runTests (driver, modes) {

it('Sorting books by name', async function () {
if (isJqueryMode) {
console.log('\x1b[33m%s\x1b[0m', ' Test skipped.');
console.log('\x1b[33m%s\x1b[0m', ' Following test skipped:');
return;
}
// We switch to default Content and back to Iframe because the If we are retrying the test
Expand All @@ -252,7 +252,7 @@ function runTests (driver, modes) {

it('Change Language', async function () {
if (isJqueryMode) {
console.log('\x1b[33m%s\x1b[0m', ' Test skipped.');
console.log('\x1b[33m%s\x1b[0m', ' Following test skipped:');
return;
}
// click on the language dropdown and select option French
Expand Down Expand Up @@ -325,7 +325,7 @@ function runTests (driver, modes) {

it('Author search Autocomplete', async function () {
if (isJqueryMode) {
console.log('\x1b[33m%s\x1b[0m', ' Test skipped.');
console.log('\x1b[33m%s\x1b[0m', ' Following test skipped:');
return;
}
const filter = await driver.wait(until.elementIsVisible(driver.findElement(By.id('author_filter'))), 1500);
Expand All @@ -336,7 +336,7 @@ function runTests (driver, modes) {

it('Author search Results', async function () {
if (isJqueryMode) {
console.log('\x1b[33m%s\x1b[0m', ' Test skipped.');
console.log('\x1b[33m%s\x1b[0m', ' Following test skipped:');
return;
}
// search by author name and press enter to apply the filter
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/spec/legacy-ray_charles.e2e.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function runTests (driver, modes) {

it('Load legacy Ray Charles and check index contains specified article', async function () {
if (!serviceWorkerAPI) {
console.log('\x1b[33m%s\x1b[0m', ' Test skipped.');
console.log('\x1b[33m%s\x1b[0m', ' Following test skipped:');
return;
}
const archiveFiles = await driver.findElement(By.id('archiveFiles'));
Expand Down Expand Up @@ -221,7 +221,7 @@ function runTests (driver, modes) {

it('Navigate to "This Little Girl of Mine"', async function () {
if (!serviceWorkerAPI) {
console.log('\x1b[33m%s\x1b[0m', ' Test skipped.');
console.log('\x1b[33m%s\x1b[0m', ' Following test skipped:');
return;
}
// console.log('FilesLength outer: ' + filesLength);
Expand Down Expand Up @@ -259,7 +259,7 @@ function runTests (driver, modes) {

it('Search for Ray Charles in title index and go to article', async function () {
if (!serviceWorkerAPI) {
console.log('\x1b[33m%s\x1b[0m', ' Test skipped.');
console.log('\x1b[33m%s\x1b[0m', ' Following test skipped:');
return;
}
await driver.switchTo().defaultContent();
Expand Down

0 comments on commit b6d4d2d

Please sign in to comment.