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
fdc4ab88
Unverified
Commit
fdc4ab88
authored
May 03, 2022
by
Tim Neutkens
Committed by
GitHub
May 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable disabled tests that pass (#36644)
parent
b9bf2699
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
index.test.ts
test/e2e/root-dir/index.test.ts
+8
-6
No files found.
test/e2e/root-dir/index.test.ts
View file @
fdc4ab88
...
@@ -5,8 +5,7 @@ import path from 'path'
...
@@ -5,8 +5,7 @@ import path from 'path'
import
cheerio
from
'cheerio'
import
cheerio
from
'cheerio'
import
webdriver
from
'next-webdriver'
import
webdriver
from
'next-webdriver'
// TODO: implementation
describe
(
'root dir'
,
()
=>
{
describe
.
skip
(
'root dir'
,
()
=>
{
let
next
:
NextInstance
let
next
:
NextInstance
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
@@ -127,12 +126,13 @@ describe.skip('root dir', () => {
...
@@ -127,12 +126,13 @@ describe.skip('root dir', () => {
// TODO: do we want to make this only work for /root or is it allowed
// TODO: do we want to make this only work for /root or is it allowed
// to work for /pages as well?
// to work for /pages as well?
it
(
'should match partial parameters'
,
async
()
=>
{
it
.
skip
(
'should match partial parameters'
,
async
()
=>
{
const
html
=
await
renderViaHTTP
(
next
.
url
,
'/partial-match-123'
)
const
html
=
await
renderViaHTTP
(
next
.
url
,
'/partial-match-123'
)
expect
(
html
).
toContain
(
'hello from root/partial-match-[id]. ID is: 123'
)
expect
(
html
).
toContain
(
'hello from root/partial-match-[id]. ID is: 123'
)
})
})
describe
(
'parallel routes'
,
()
=>
{
// TODO: Implement
describe
.
skip
(
'parallel routes'
,
()
=>
{
describe
(
'conditional routes'
,
()
=>
{
describe
(
'conditional routes'
,
()
=>
{
it
(
'should serve user page'
,
async
()
=>
{
it
(
'should serve user page'
,
async
()
=>
{
const
html
=
await
renderViaHTTP
(
next
.
url
,
'/conditional/tim'
)
const
html
=
await
renderViaHTTP
(
next
.
url
,
'/conditional/tim'
)
...
@@ -229,7 +229,8 @@ describe.skip('root dir', () => {
...
@@ -229,7 +229,8 @@ describe.skip('root dir', () => {
expect
(
html
).
toContain
(
'hello from root/shared-component-route'
)
expect
(
html
).
toContain
(
'hello from root/shared-component-route'
)
})
})
it
(
'should serve client component'
,
async
()
=>
{
// TODO: implement
it
.
skip
(
'should serve client component'
,
async
()
=>
{
const
html
=
await
renderViaHTTP
(
next
.
url
,
'/client-component-route'
)
const
html
=
await
renderViaHTTP
(
next
.
url
,
'/client-component-route'
)
expect
(
html
).
toContain
(
'hello from root/client-component-route. count: 0'
)
expect
(
html
).
toContain
(
'hello from root/client-component-route. count: 0'
)
...
@@ -240,7 +241,8 @@ describe.skip('root dir', () => {
...
@@ -240,7 +241,8 @@ describe.skip('root dir', () => {
)
)
})
})
it
(
'should include client component layout with server component route'
,
async
()
=>
{
// TODO: implement
it
.
skip
(
'should include client component layout with server component route'
,
async
()
=>
{
const
html
=
await
renderViaHTTP
(
next
.
url
,
'/client-nested'
)
const
html
=
await
renderViaHTTP
(
next
.
url
,
'/client-nested'
)
const
$
=
cheerio
.
load
(
html
)
const
$
=
cheerio
.
load
(
html
)
// Should not be nested in dashboard
// Should not be nested in dashboard
...
...
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