From 86cfe45ee4afb640987dc823ebc3a280c9923512 Mon Sep 17 00:00:00 2001 From: cea2aj <42848445+cea2aj@users.noreply.github.com> Date: Wed, 23 Jun 2021 14:03:09 -0400 Subject: [PATCH] Testcafe config file (#849) Add a testcafe config file to make the internet explorer tests more robust J=none TEST=manual Run the tests and confirm they pass --- tests/acceptance/index.js | 4 +++- tests/acceptance/testcafe.json | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tests/acceptance/testcafe.json diff --git a/tests/acceptance/index.js b/tests/acceptance/index.js index d15051d57..86518b84c 100644 --- a/tests/acceptance/index.js +++ b/tests/acceptance/index.js @@ -21,7 +21,9 @@ runTests(argv.browsers); * @param {string[]} browsers The browsers to run the tests on */ async function runTests (browsers) { - const testcafe = await createTestCafe(); + const testcafe = await createTestCafe({ + configFile: './testcafe.json' + }); try { const numberTestsFailed = await testcafe.createRunner() .src('tests/acceptance/suites/*.js') diff --git a/tests/acceptance/testcafe.json b/tests/acceptance/testcafe.json new file mode 100644 index 000000000..6b0068bcf --- /dev/null +++ b/tests/acceptance/testcafe.json @@ -0,0 +1,5 @@ +{ + "selectorTimeout": 20000, // default is 10000 + "assertionTimeout": 6000, // default is 3000 + "pageLoadTimeout": 6000 // default is 3000 +} \ No newline at end of file