Skip to content

Commit

Permalink
Enable disabled tests that pass
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed May 3, 2022
1 parent b9bf269 commit 94b9a28
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/e2e/root-dir/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import path from 'path'
import cheerio from 'cheerio'
import webdriver from 'next-webdriver'

// TODO: implementation
describe.skip('root dir', () => {
describe('root dir', () => {
let next: NextInstance

beforeAll(async () => {
Expand Down Expand Up @@ -127,12 +126,13 @@ describe.skip('root dir', () => {

// TODO: do we want to make this only work for /root or is it allowed
// 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')
expect(html).toContain('hello from root/partial-match-[id]. ID is: 123')
})

describe('parallel routes', () => {
// TODO: Implement
describe.skip('parallel routes', () => {
describe('conditional routes', () => {
it('should serve user page', async () => {
const html = await renderViaHTTP(next.url, '/conditional/tim')
Expand Down Expand Up @@ -229,7 +229,8 @@ describe.skip('root dir', () => {
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')
expect(html).toContain('hello from root/client-component-route. count: 0')

Expand All @@ -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 $ = cheerio.load(html)
// Should not be nested in dashboard
Expand Down

0 comments on commit 94b9a28

Please sign in to comment.