Skip to content

Commit

Permalink
chore: drop ie11 for react E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
devcorpio committed Aug 8, 2023
1 parent 9767f3d commit 6541d4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions dev-utils/test-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion packages/rum-react/wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
)

0 comments on commit 6541d4a

Please sign in to comment.