diff --git a/nym-wallet/wallet-fe-tests/scripts/killprocess.sh b/nym-wallet/wallet-fe-tests/scripts/killprocess.sh new file mode 100644 index 0000000000..4626d0cf81 --- /dev/null +++ b/nym-wallet/wallet-fe-tests/scripts/killprocess.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +#kill existing process +kill -9 $(ps aux | egrep "WebKitWeb|tauri-dri" | awk '{print $2}') +exit 0; diff --git a/nym-wallet/wallet-fe-tests/test/specs/login/mnemoniclogin.spec.ts b/nym-wallet/wallet-fe-tests/test/specs/login/mnemoniclogin.spec.ts index 1c19bcf85d..5ca2e25205 100644 --- a/nym-wallet/wallet-fe-tests/test/specs/login/mnemoniclogin.spec.ts +++ b/nym-wallet/wallet-fe-tests/test/specs/login/mnemoniclogin.spec.ts @@ -8,7 +8,7 @@ const Helper = require('../../../common/helper'); -describe('Wallet sign in functionality with mnemonic', () => { +describe.skip('Wallet sign in functionality with mnemonic', () => { it('get to the sign in with mnemonic screen', async () => { diff --git a/nym-wallet/wallet-fe-tests/test/wdio.conf.ts b/nym-wallet/wallet-fe-tests/test/wdio.conf.ts index a8f789815c..72eec5db2c 100644 --- a/nym-wallet/wallet-fe-tests/test/wdio.conf.ts +++ b/nym-wallet/wallet-fe-tests/test/wdio.conf.ts @@ -17,24 +17,24 @@ exports.config = { specs: ['./test/specs/**/*.ts'], suites: { -// signup: [ -// './test/specs/signup/*.ts', -// ], + // signup: [ + // './test/specs/signup/*.ts', + // ], login: [ './test/specs/login/*.ts', ], -// balance: [ -// './test/specs/balance/*.ts', -// ], -// nav: [ -// './test/specs/general/*.ts', -// ], -// send: [ -// './test/specs/send/*.ts', -// ], -// delegation: [ -// './test/specs/delegation/*.ts', -// ], + // balance: [ + // './test/specs/balance/*.ts', + // ], + // nav: [ + // './test/specs/general/*.ts', + // ], + // send: [ + // './test/specs/send/*.ts', + // ], + // delegation: [ + // './test/specs/delegation/*.ts', + // ], }, // Patterns to exclude. exclude: [ @@ -59,7 +59,7 @@ exports.config = { logLevel: 'info', bail: 0, framework: 'mocha', -// reporters: ['spec'], + // reporters: ['spec'], mochaOpts: { ui: 'bdd', timeout: 60000, @@ -80,16 +80,23 @@ exports.config = { // this is documentented in the readme - you will need to build the project first // ensure the rust project is built since we expect this binary to exist for the webdriver sessions - //onPrepare: () => spawnSync("cargo", ["build", "--release"]), - // ensure we are running `tauri-driver` before the session starts so that we can proxy the webdriver requests - beforeSession: () => + + + beforeSession: () => { + + let scriptpath = process.cwd() + "/scripts/killprocess.sh"; + spawn('bash', [scriptpath]); + (tauriDriver = spawn( path.resolve(os.homedir(), '.cargo', 'bin', 'tauri-driver'), [], { stdio: [null, process.stdout, process.stderr] } - )), + )) + + }, + // clean up the `tauri-driver` process we spawned at the start of the session afterSession: () => tauriDriver.kill(),