Tweak export test to be more stable (#10241)
Co-authored-by: Joe Haddad <timer150@gmail.com>
This commit is contained in:
parent
9d7ee34d2c
commit
127f707c18
4 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||
|
|
|
@ -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/
|
||||
)
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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/
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue