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
e42fdd82
Unverified
Commit
e42fdd82
authored
Oct 23, 2019
by
Joe Haddad
Committed by
GitHub
Oct 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reenable AMP Tests (#9162)
parent
60ff5cc7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
index.test.js
test/integration/amp-export-validation/test/index.test.js
+1
-1
index.test.js
test/integration/amphtml-fragment-style/test/index.test.js
+1
-1
index.test.js
test/integration/amphtml/test/index.test.js
+1
-1
index.test.js
test/integration/styled-jsx-module/test/index.test.js
+2
-2
No files found.
test/integration/amp-export-validation/test/index.test.js
View file @
e42fdd82
...
...
@@ -15,7 +15,7 @@ const nextConfig = new File(join(appDir, 'next.config.js'))
let
buildOutput
x
describe
(
'AMP Validation on Export'
,
()
=>
{
describe
(
'AMP Validation on Export'
,
()
=>
{
beforeAll
(
async
()
=>
{
const
{
stdout
=
''
,
stderr
=
''
}
=
await
nextBuild
(
appDir
,
[],
{
stdout
:
true
,
...
...
test/integration/amphtml-fragment-style/test/index.test.js
View file @
e42fdd82
...
...
@@ -17,7 +17,7 @@ let appPort
let
server
let
app
x
describe
(
'AMP Fragment Styles'
,
()
=>
{
describe
(
'AMP Fragment Styles'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
nextBuild
(
appDir
)
app
=
nextServer
({
...
...
test/integration/amphtml/test/index.test.js
View file @
e42fdd82
...
...
@@ -27,7 +27,7 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
const
context
=
{}
x
describe
(
'AMP Usage'
,
()
=>
{
describe
(
'AMP Usage'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
nextBuild
(
appDir
)
app
=
nextServer
({
...
...
test/integration/styled-jsx-module/test/index.test.js
View file @
e42fdd82
...
...
@@ -27,7 +27,7 @@ function runTests () {
expect
(
color
).
toMatch
(
'0, 255, 255'
)
})
x
it
(
'should render styles during CSR (AMP)'
,
async
()
=>
{
it
(
'should render styles during CSR (AMP)'
,
async
()
=>
{
const
browser
=
await
webdriver
(
appPort
,
'/amp'
)
const
color
=
await
browser
.
eval
(
`getComputedStyle(document.querySelector('button')).color`
...
...
@@ -41,7 +41,7 @@ function runTests () {
expect
(
html
).
toMatch
(
/color:.*
?
cyan/
)
})
x
it
(
'should render styles during SSR (AMP)'
,
async
()
=>
{
it
(
'should render styles during SSR (AMP)'
,
async
()
=>
{
const
html
=
await
renderViaHTTP
(
appPort
,
'/amp'
)
expect
(
html
).
toMatch
(
/color:.*
?
cyan/
)
})
...
...
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