@@ -8,26 +8,8 @@ export const config: Options.Testrunner = {
88 // WebdriverIO supports running e2e tests as well as unit and component tests.
99 runner : 'local' ,
1010
11- //
12- // ==================
13- // Specify Test Files
14- // ==================
15- // Define which test specs should run. The pattern is relative to the directory
16- // of the configuration file being run.
17- //
18- // The specs are defined as an array of spec files (optionally using wildcards
19- // that will be expanded). The test for each spec file will be run in a separate
20- // worker process. In order to have a group of spec files run in the same worker
21- // process simply enclose them in an array within the specs array.
22- //
23- // The path of the spec files will be resolved relative from the directory of
24- // of the config file unless it's absolute.
25- //
2611 specs : [ './test/specs/**/*.ts' ] ,
27- // Patterns to exclude.
28- exclude : [
29- // 'path/to/excluded/files'
30- ] ,
12+
3113 //
3214 // ============
3315 // Capabilities
@@ -50,15 +32,20 @@ export const config: Options.Testrunner = {
5032 // Sauce Labs platform configurator - a great tool to configure your capabilities:
5133 // https://saucelabs.com/platform/platform-configurator
5234 //
35+ //
36+ // If you have trouble getting all important capabilities together, check out the
37+ // Sauce Labs platform configurator - a great tool to configure your capabilities:
38+ // https://saucelabs.com/platform/platform-configurator
39+ //
40+
5341 capabilities : [
5442 {
5543 browserName : 'electron' ,
56- // Electron service options
57- // see https://webdriver.io/docs/desktop-testing/electron/configuration/#service-options
5844 'wdio:electronServiceOptions' : {
59- // custom application args
60- appBinaryPath :
61- '/home/cdiesh/src/jbrowse-components/products/jbrowse-desktop/node_modules/.bin/electron' ,
45+ // WebdriverIO can automatically find your bundled application
46+ // if you use Electron Forge or electron-builder, otherwise you
47+ // can define it here, e.g.:
48+ appBinaryPath : 'dist/linux-unpacked/jbrowse-desktop' ,
6249 } ,
6350 } ,
6451 ] ,
@@ -70,7 +57,8 @@ export const config: Options.Testrunner = {
7057 // Define all options that are relevant for the WebdriverIO instance here
7158 //
7259 // Level of logging verbosity: trace | debug | info | warn | error | silent
73- logLevel : 'info' ,
60+ logLevel : 'error' ,
61+ // logLevel: 'info',
7462 //
7563 // Set specific log levels per logger
7664 // loggers:
@@ -141,4 +129,15 @@ export const config: Options.Testrunner = {
141129 ui : 'bdd' ,
142130 timeout : 60000 ,
143131 } ,
132+
133+ // Hooks
134+ // afterTest: async () => {
135+ // // Close Electron window after each test
136+ // try {
137+ // const { browser } = await import('@wdio/globals')
138+ // await browser.closeWindow()
139+ // } catch (error) {
140+ // console.log('Could not close window:', error)
141+ // }
142+ // },
144143}
0 commit comments