Tweak export test to be more stable (#10241)

Co-authored-by: Joe Haddad <timer150@gmail.com>
This commit is contained in:
JJ Kasper 2020-01-23 14:40:12 -06:00 committed by Joe Haddad
parent 9d7ee34d2c
commit 127f707c18
4 changed files with 6 additions and 6 deletions

View file

@ -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>

View file

@ -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/
)

View file

@ -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>

View file

@ -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/
)