Skip to content

Commit

Permalink
Testcafe config file (#849)
Browse files Browse the repository at this point in the history
Add a testcafe config file to make the internet explorer tests more robust

J=none
TEST=manual

Run the tests and confirm they pass
  • Loading branch information
cea2aj committed Jun 23, 2021
1 parent 34c1d2d commit 86cfe45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/acceptance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
5 changes: 5 additions & 0 deletions tests/acceptance/testcafe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"selectorTimeout": 20000, // default is 10000
"assertionTimeout": 6000, // default is 3000
"pageLoadTimeout": 6000 // default is 3000
}

0 comments on commit 86cfe45

Please sign in to comment.