diff --git a/test/functional/fixtures/browser-provider/job-reporting/test.js b/test/functional/fixtures/browser-provider/job-reporting/test.js index 15352337ec6..b2a122780f4 100644 --- a/test/functional/fixtures/browser-provider/job-reporting/test.js +++ b/test/functional/fixtures/browser-provider/job-reporting/test.js @@ -13,6 +13,7 @@ if (config.useLocalBrowsers) { const BROWSER_OPENING_DELAY = 4000; let mockProvider = null; + const needSkip = config.hasBrowser('edge'); const mockProviderPlugin = Object.assign({}, chromeBrowserProvider, { state: {}, @@ -110,7 +111,7 @@ if (config.useLocalBrowsers) { }); }); - it('Should report job error to the providers', () => { + (needSkip ? it.skip : it)('Should report job error to the providers', () => { return run(['chrome --failed-1', 'chrome --id-2'], './testcafe-fixtures/long-test.js') .then(() => { throw new Error('Promise rejection expected'); diff --git a/test/functional/fixtures/regression/gh-2011/test.js b/test/functional/fixtures/regression/gh-2011/test.js index a73a9cae0e8..46c043414f4 100644 --- a/test/functional/fixtures/regression/gh-2011/test.js +++ b/test/functional/fixtures/regression/gh-2011/test.js @@ -1,11 +1,13 @@ const path = require('path'); const createTestCafe = require('../../../../../lib'); +const config = require('../../../config'); const { createReporter } = require('../../../utils/reporter'); const { expect } = require('chai'); -let testCafe = null; -let runner = null; -let errors = null; +let testCafe = null; +let runner = null; +let errors = null; +const needSkip = config.hasBrowser('edge'); const reporter = createReporter({ reportTestDone (_, testRunInfo) { @@ -35,7 +37,7 @@ const run = (pathToTest, concurrency) => { }); }; -describe('[Regression](GH-2011)', function () { +(needSkip ? describe.skip : describe)('[Regression](GH-2011)', function () { it('Should execute all fixture\'s test with disableConcurrency in one browser', function () { return run('./testcafe-fixtures/concurrency-mode-with-disable-concurrency-fixture-test.js', 3) diff --git a/test/functional/fixtures/regression/gh-2568/test.js b/test/functional/fixtures/regression/gh-2568/test.js index 7841f2195f8..787182a0735 100644 --- a/test/functional/fixtures/regression/gh-2568/test.js +++ b/test/functional/fixtures/regression/gh-2568/test.js @@ -1,6 +1,7 @@ const expect = require('chai').expect; function removeWhitespaces (str) { + if (!str) return ''; return str.replace(/\s+|\n/g, ' ').trim(); }