From 6541d4aa6652ffc4c7e78b0e34323aee41a1126d Mon Sep 17 00:00:00 2001 From: Alberto Delgado Roda Date: Tue, 8 Aug 2023 14:18:57 +0200 Subject: [PATCH] chore: drop ie11 for react E2E --- dev-utils/test-config.js | 6 ++++++ packages/rum-react/wdio.conf.js | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dev-utils/test-config.js b/dev-utils/test-config.js index 1c13d6d12..34e4f274d 100644 --- a/dev-utils/test-config.js +++ b/dev-utils/test-config.js @@ -156,6 +156,12 @@ function getBrowserList(pkg = 'default') { let browsers = [] if (pkg === 'default') { browsers = getDefaultBrowsers() + } else if (pkg === 'react') { + // react router 6 doesn't support IE 11, we get rid of it when executing E2E + // https://github.com/remix-run/react-router/issues/8220#issuecomment-961326123 + return getDefaultBrowsers().filter( + browser => browser.browserName != 'internet explorer' + ) } else if (pkg === 'vue') { // Vue 3 dropped support for IE 11 and older browsers, // so we use modern browsers ro run the tests diff --git a/packages/rum-react/wdio.conf.js b/packages/rum-react/wdio.conf.js index e40d691d3..01e1d4aff 100644 --- a/packages/rum-react/wdio.conf.js +++ b/packages/rum-react/wdio.conf.js @@ -24,5 +24,10 @@ */ const { getWebdriveBaseConfig } = require('../../dev-utils/webdriver') +const { getBrowserList } = require('../../dev-utils/test-config') -exports.config = getWebdriveBaseConfig(__dirname) +exports.config = getWebdriveBaseConfig( + __dirname, + './test/e2e/**/*.e2e-spec.js', + getBrowserList('react') +)