diff --git a/tests/.testcaferc.js b/tests/.testcaferc.js index 16ecc4c0..20529860 100644 --- a/tests/.testcaferc.js +++ b/tests/.testcaferc.js @@ -3,7 +3,7 @@ const BROWSER = process.env.BROWSER || "chrome --use-fake-device-for-media-strea module.exports = { "browsers": BROWSER, "hostname": "localhost", - "skipJsErrors": true, + //"skipJsErrors": true, "src": "tests/", "screenshots": { "path": "screenshots/", diff --git a/tests/tests/test.ts b/tests/tests/test.ts index e9fb893b..e7f3bdba 100644 --- a/tests/tests/test.ts +++ b/tests/tests/test.ts @@ -35,7 +35,9 @@ test("Test that variables cache in the back don't prevent setting a variable in const messages = await t.getBrowserConsoleMessages(); const logs = messages['log']; + console.log(logs); const lastMessage = logs.pop(); + // Let's check we successfully manage to save the variable value. await t.expect(lastMessage).eql('SUCCESS!'); });