diff --git a/src/cucumber-runner.ts b/src/cucumber-runner.ts index 7834a16e..9493d368 100644 --- a/src/cucumber-runner.ts +++ b/src/cucumber-runner.ts @@ -1,5 +1,6 @@ import { spawn } from 'node:child_process'; import * as path from 'node:path'; +import { setTimeout } from 'node:timers'; import { prepareNpmEnv, preExec } from 'sauce-testrunner-utils'; import type { CucumberRunnerConfig } from './types'; diff --git a/src/playwright-runner.ts b/src/playwright-runner.ts index 9e4be909..dbd21c18 100644 --- a/src/playwright-runner.ts +++ b/src/playwright-runner.ts @@ -2,6 +2,7 @@ import { spawn } from 'node:child_process'; import * as path from 'node:path'; import * as fs from 'node:fs'; +import { setTimeout } from 'node:timers'; import _ from 'lodash'; import { diff --git a/tests/fixtures/cloud/cucumber/features/support/steps.js b/tests/fixtures/cloud/cucumber/features/support/steps.js index e23e46a3..00e31ac3 100644 --- a/tests/fixtures/cloud/cucumber/features/support/steps.js +++ b/tests/fixtures/cloud/cucumber/features/support/steps.js @@ -2,6 +2,7 @@ const { Before, When, Then } = require('@cucumber/cucumber'); const { chromium, firefox, webkit } = require('playwright'); const { expect } = require('@playwright/test'); const prettySeconds = require('pretty-seconds'); +const { setTimeout } = require('node:timers'); Before(async function () { const opts = { diff --git a/tests/fixtures/local/cucumber/features/support/steps.js b/tests/fixtures/local/cucumber/features/support/steps.js index 24c537c5..15aabf04 100644 --- a/tests/fixtures/local/cucumber/features/support/steps.js +++ b/tests/fixtures/local/cucumber/features/support/steps.js @@ -1,5 +1,6 @@ const { Before, When, Then } = require('@cucumber/cucumber'); const { chromium, firefox, webkit } = require('playwright'); +const { setTimeout } = require('node:timers'); Before(async function () { const opts = { diff --git a/tests/fixtures/post-release/cucumber/features/support/steps.js b/tests/fixtures/post-release/cucumber/features/support/steps.js index e23e46a3..00e31ac3 100644 --- a/tests/fixtures/post-release/cucumber/features/support/steps.js +++ b/tests/fixtures/post-release/cucumber/features/support/steps.js @@ -2,6 +2,7 @@ const { Before, When, Then } = require('@cucumber/cucumber'); const { chromium, firefox, webkit } = require('playwright'); const { expect } = require('@playwright/test'); const prettySeconds = require('pretty-seconds'); +const { setTimeout } = require('node:timers'); Before(async function () { const opts = {