From 62d3df2c650cc54345a851e9a17572d45fd3c314 Mon Sep 17 00:00:00 2001 From: JOASSART Edwin Date: Sat, 27 Apr 2024 08:42:20 +0200 Subject: [PATCH] patch: passing url e2e ? --- package.json | 2 +- wdio.conf.ts | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 8e33fbd21d7..ecc31bec801 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "package": "electron-forge package", "start": "electron-forge start", "make": "electron-forge make", - "wdio": "xvfb-maybe wdio run ./wdio.conf.ts --exclude e2e ", + "wdio": "xvfb-maybe wdio run ./wdio.conf.ts --suite gui --suite shared", "wdio-e2e": "xvfb-maybe wdio run ./wdio.conf.ts --suite e2e" }, "husky": { diff --git a/wdio.conf.ts b/wdio.conf.ts index f44025e20a5..8100a0c3c41 100644 --- a/wdio.conf.ts +++ b/wdio.conf.ts @@ -31,24 +31,24 @@ export const config: Options.Testrunner = { // The path of the spec files will be resolved relative from the directory of // of the config file unless it's absolute. // - // specs: ['./tests/**/*.spec.ts'], + specs: ['./tests/**/*.spec.ts'], // Patterns to exclude. // FIXME: Remove the following exclusions once the tests are ported to WDIO - // exclude: [ - // './tests/gui/modules/image-writer.spec.ts', - // './tests/gui/os/window-progress.spec.ts', - // './tests/gui/models/available-drives.spec.ts', - // './tests/gui/models/flash-state.spec.ts', - // './tests/gui/models/selection-state.spec.ts', - // './tests/gui/models/settings.spec.ts', - // './tests/shared/drive-constraints.spec.ts', - // './tests/shared/messages.spec.ts', - // './tests/gui/modules/progress-status.spec.ts', - // ], + exclude: [ + './tests/gui/modules/image-writer.spec.ts', + './tests/gui/os/window-progress.spec.ts', + './tests/gui/models/available-drives.spec.ts', + './tests/gui/models/flash-state.spec.ts', + './tests/gui/models/selection-state.spec.ts', + './tests/gui/models/settings.spec.ts', + './tests/shared/drive-constraints.spec.ts', + './tests/shared/messages.spec.ts', + './tests/gui/modules/progress-status.spec.ts', + ], suites: { - // 'gui': ['./tests/gui/**/*.spec.ts'], - // 'shared': ['./tests/shared/**/*.spec.ts'], + 'gui': ['./tests/gui/**/*.spec.ts'], + 'shared': ['./tests/shared/**/*.spec.ts'], 'e2e': [ // 'tests/e2e/e2e-flash-from-file.spec.ts', './tests/e2e/e2e-flash-from-url.spec.ts',