diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d569ffc..f5fe1d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,7 @@ jobs: contents: write pull-requests: write packages: write + id-token: write steps: - uses: googleapis/release-please-action@v4 id: release diff --git a/examples/wdio-cjs/wdio.conf.js b/examples/wdio-cjs/wdio.conf.js index 084fd94..8ab564b 100644 --- a/examples/wdio-cjs/wdio.conf.js +++ b/examples/wdio-cjs/wdio.conf.js @@ -14,7 +14,7 @@ exports.config = { framework: 'mocha', reporters: ['spec'], - services: [['qunit', { autostartDelay: 1000 }]], + services: [['qunit', { autostartDelay: 5000 }]], mochaOpts: { ui: 'bdd', timeout: 60000 diff --git a/src/index.ts b/src/index.ts index 164728f..625970e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -108,7 +108,8 @@ async function QunitFinishedEventInBrowserContext( }); const automaticRunStartPromise = new Promise((resolve) => { window.setTimeout(() => { - if (!started) { + if (!started && !window.QUnit.config.started) { + started = true; console.debug('QUnit started automatically by service'); // eslint-disable-line no-console window.QUnit.start(); resolve();