Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
127f707c
Commit
127f707c
authored
Jan 23, 2020
by
JJ Kasper
Committed by
Joe Haddad
Jan 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak export test to be more stable (#10241)
Co-authored-by:
Joe Haddad
<
timer150@gmail.com
>
parent
9d7ee34d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
index.js
test/integration/export-serverless/pages/index.js
+1
-1
browser.js
test/integration/export-serverless/test/browser.js
+2
-2
index.js
test/integration/export/pages/index.js
+1
-1
browser.js
test/integration/export/test/browser.js
+2
-2
No files found.
test/integration/export-serverless/pages/index.js
View file @
127f707c
...
@@ -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
>
...
...
test/integration/export-serverless/test/browser.js
View file @
127f707c
...
@@ -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/
)
)
...
...
test/integration/export/pages/index.js
View file @
127f707c
...
@@ -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
>
...
...
test/integration/export/test/browser.js
View file @
127f707c
...
@@ -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/
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment