Unverified Commit d23d25f4 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix production test compatibility for ie11 (#18874)

This corrects this test failing from an arrow function being used in ie11 which isn't supported natively

```
 ● Production Usage › Dynamic import › default behavior › should not remove css styles for same css file between page transitions

    JavascriptError: Error executing JavaScript

      at Object.throwDecodedError (../node_modules/selenium-webdriver/lib/error.js:550:15)
      at parseHttpResponse (../node_modules/selenium-webdriver/lib/http.js:565:13)
      at Executor.execute (../node_modules/selenium-webdriver/lib/http.js:491:26)
```
parent d87bc3de
......@@ -48,9 +48,9 @@ export default (context, render) => {
const firstElement = await browser.elementById('with-css')
const css1 = await firstElement.getComputedCss('display')
expect(css1).toBe('flex')
await browser.eval(() =>
await browser.eval(function () {
window.next.router.push('/dynamic/pagechange2')
)
})
await check(() => browser.elementByCss('body').text(), /PageChange2/)
const secondElement = await browser.elementById('with-css')
const css2 = await secondElement.getComputedCss('display')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment