Skip to content

Commit

Permalink
Tweak export test to be more stable (#10241)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Haddad <timer150@gmail.com>
  • Loading branch information
ijjk and Timer committed Jan 23, 2020
1 parent 9d7ee34 commit 127f707
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/integration/export-serverless/pages/index.js
Expand Up @@ -40,7 +40,7 @@ export default () => (
<a id="level1-about-page">Level1 about page</a>
</Link>
<Link href="/dynamic-imports">
<a id="dynamic-imports-page">Dynamic imports page</a>
<a id="dynamic-imports-link">Dynamic imports page</a>
</Link>
</div>
<p>This is the home page</p>
Expand Down
4 changes: 2 additions & 2 deletions test/integration/export-serverless/test/browser.js
Expand Up @@ -133,12 +133,12 @@ export default function(context) {
it('should render dynamic import components in the client', async () => {
const browser = await webdriver(context.port, '/')
await browser
.elementByCss('#dynamic-imports-page')
.elementByCss('#dynamic-imports-link')
.click()
.waitForElementByCss('#dynamic-imports-page')

await check(
() => browser.elementByCss('#dynamic-imports-page p').text(),
() => getBrowserBodyText(browser),
/Welcome to dynamic imports/
)

Expand Down
2 changes: 1 addition & 1 deletion test/integration/export/pages/index.js
Expand Up @@ -40,7 +40,7 @@ export default () => (
<a id="level1-about-page">Level1 about page</a>
</Link>
<Link href="/dynamic-imports">
<a id="dynamic-imports-page">Dynamic imports page</a>
<a id="dynamic-imports-link">Dynamic imports page</a>
</Link>
</div>
<p>This is the home page</p>
Expand Down
4 changes: 2 additions & 2 deletions test/integration/export/test/browser.js
Expand Up @@ -140,12 +140,12 @@ export default function(context) {
it('should render dynamic import components in the client', async () => {
const browser = await webdriver(context.port, '/')
await browser
.elementByCss('#dynamic-imports-page')
.elementByCss('#dynamic-imports-link')
.click()
.waitForElementByCss('#dynamic-imports-page')

await check(
() => browser.elementByCss('#dynamic-imports-page p').text(),
() => getBrowserBodyText(browser),
/Welcome to dynamic imports/
)

Expand Down

0 comments on commit 127f707

Please sign in to comment.