From 84e5ef1a180d4eaffac1d255104c1ea197cfa897 Mon Sep 17 00:00:00 2001 From: Jaime Terreu Date: Sat, 17 Jul 2021 18:15:45 +0930 Subject: [PATCH] Add timeout for test It seems the first test is having issues with a timeout. Added timeout to test script as recommended by https://github.com/mochajs/mocha/issues/2025 --- bin/test-ts.sh | 2 +- tests/e2e.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/test-ts.sh b/bin/test-ts.sh index 8ec9bd0..7b4cf20 100755 --- a/bin/test-ts.sh +++ b/bin/test-ts.sh @@ -2,4 +2,4 @@ set -eo pipefail echo "Testing ts" -yarn mocha --exit -r ts-node/register 'tests/**/*.spec.ts' +yarn mocha --timeout 10000 --exit -r ts-node/register 'tests/**/*.spec.ts' diff --git a/tests/e2e.spec.ts b/tests/e2e.spec.ts index 65e012d..efc36a8 100755 --- a/tests/e2e.spec.ts +++ b/tests/e2e.spec.ts @@ -41,7 +41,7 @@ describe("examples", () => { describe("SingleSearchable", () => { // LIST BOX it("list box visible after matching input", async () => { - await browser.newContext(); + // @ts-ignore const page = await browser.newPage(); await page.goto(`${BASE_URI}/SingleSearchable.elm`);