Commit 127f707c authored by JJ Kasper's avatar JJ Kasper Committed by Joe Haddad

Tweak export test to be more stable (#10241)

Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
parent 9d7ee34d
...@@ -40,7 +40,7 @@ export default () => ( ...@@ -40,7 +40,7 @@ export default () => (
<a id="level1-about-page">Level1 about page</a> <a id="level1-about-page">Level1 about page</a>
</Link> </Link>
<Link href="/dynamic-imports"> <Link href="/dynamic-imports">
<a id="dynamic-imports-page">Dynamic imports page</a> <a id="dynamic-imports-link">Dynamic imports page</a>
</Link> </Link>
</div> </div>
<p>This is the home page</p> <p>This is the home page</p>
......
...@@ -133,12 +133,12 @@ export default function(context) { ...@@ -133,12 +133,12 @@ export default function(context) {
it('should render dynamic import components in the client', async () => { it('should render dynamic import components in the client', async () => {
const browser = await webdriver(context.port, '/') const browser = await webdriver(context.port, '/')
await browser await browser
.elementByCss('#dynamic-imports-page') .elementByCss('#dynamic-imports-link')
.click() .click()
.waitForElementByCss('#dynamic-imports-page') .waitForElementByCss('#dynamic-imports-page')
await check( await check(
() => browser.elementByCss('#dynamic-imports-page p').text(), () => getBrowserBodyText(browser),
/Welcome to dynamic imports/ /Welcome to dynamic imports/
) )
......
...@@ -40,7 +40,7 @@ export default () => ( ...@@ -40,7 +40,7 @@ export default () => (
<a id="level1-about-page">Level1 about page</a> <a id="level1-about-page">Level1 about page</a>
</Link> </Link>
<Link href="/dynamic-imports"> <Link href="/dynamic-imports">
<a id="dynamic-imports-page">Dynamic imports page</a> <a id="dynamic-imports-link">Dynamic imports page</a>
</Link> </Link>
</div> </div>
<p>This is the home page</p> <p>This is the home page</p>
......
...@@ -140,12 +140,12 @@ export default function(context) { ...@@ -140,12 +140,12 @@ export default function(context) {
it('should render dynamic import components in the client', async () => { it('should render dynamic import components in the client', async () => {
const browser = await webdriver(context.port, '/') const browser = await webdriver(context.port, '/')
await browser await browser
.elementByCss('#dynamic-imports-page') .elementByCss('#dynamic-imports-link')
.click() .click()
.waitForElementByCss('#dynamic-imports-page') .waitForElementByCss('#dynamic-imports-page')
await check( await check(
() => browser.elementByCss('#dynamic-imports-page p').text(), () => getBrowserBodyText(browser),
/Welcome to dynamic imports/ /Welcome to dynamic imports/
) )
......
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