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
12241384
Commit
12241384
authored
Dec 24, 2019
by
Joe Haddad
Committed by
JJ Kasper
Dec 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Chrome-Only Tests (#9825)
parent
69a34dd7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
72 deletions
+76
-72
index.test.js
test/integration/production/test/index.test.js
+76
-72
No files found.
test/integration/production/test/index.test.js
View file @
12241384
...
@@ -441,6 +441,7 @@ describe('Production Usage', () => {
...
@@ -441,6 +441,7 @@ describe('Production Usage', () => {
}
}
})
})
if
(
browserName
===
'chrome'
)
{
it
(
'should add prefetch tags when Link prefetch prop is used'
,
async
()
=>
{
it
(
'should add prefetch tags when Link prefetch prop is used'
,
async
()
=>
{
const
browser
=
await
webdriver
(
appPort
,
'/prefetch'
)
const
browser
=
await
webdriver
(
appPort
,
'/prefetch'
)
await
waitFor
(
2000
)
await
waitFor
(
2000
)
...
@@ -495,7 +496,9 @@ describe('Production Usage', () => {
...
@@ -495,7 +496,9 @@ describe('Production Usage', () => {
const
browserLogs
=
await
browser
.
log
(
'browser'
)
const
browserLogs
=
await
browser
.
log
(
'browser'
)
let
foundLog
=
false
let
foundLog
=
false
browserLogs
.
forEach
(
log
=>
{
browserLogs
.
forEach
(
log
=>
{
if
(
log
.
message
.
match
(
/
\/
no-such-page
\.
js - Failed to load resource/
))
{
if
(
log
.
message
.
match
(
/
\/
no-such-page
\.
js - Failed to load resource/
)
)
{
foundLog
=
true
foundLog
=
true
}
}
})
})
...
@@ -517,6 +520,7 @@ describe('Production Usage', () => {
...
@@ -517,6 +520,7 @@ describe('Production Usage', () => {
await
browser
.
close
()
await
browser
.
close
()
})
})
}
})
})
it
(
'should not expose the compiled page file in development'
,
async
()
=>
{
it
(
'should not expose the compiled page file in development'
,
async
()
=>
{
...
...
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