Skip to content

Commit fd1601c

Browse files
committed
tmp disable deployment test
1 parent 78993e1 commit fd1601c

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

test/e2e/app-dir/global-not-found/basic/global-not-found-basic.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ import { nextTestSetup } from 'e2e-utils'
22
import { assertNoRedbox } from 'next-test-utils'
33

44
describe('global-not-found - basic', () => {
5-
const { next, isNextDev } = nextTestSetup({
5+
const { next, isNextDev, skipped } = nextTestSetup({
66
files: __dirname,
7+
skipDeployment: true,
78
})
89

10+
// TODO(global-not-found): support deployment
11+
if (skipped) {
12+
return
13+
}
14+
915
it('should render global-not-found for 404', async () => {
1016
const browser = await next.browser('/does-not-exist')
1117
if (isNextDev) {

test/e2e/app-dir/global-not-found/both-present/both-present.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import { nextTestSetup } from 'e2e-utils'
22

33
describe('global-not-found - both-present', () => {
4-
const { next } = nextTestSetup({
4+
const { next, skipped } = nextTestSetup({
55
files: __dirname,
6+
skipDeployment: true,
67
})
78

9+
// TODO(global-not-found): support deployment
10+
if (skipped) {
11+
return
12+
}
13+
814
it('should render global-not-found for 404 routes', async () => {
915
const $ = await next.render$('/does-not-exist')
1016
expect($('html').attr('data-global-not-found')).toBe('true')

test/e2e/app-dir/global-not-found/multi-root/global-not-found-multi-root.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ import { nextTestSetup } from 'e2e-utils'
22
import { assertNoRedbox } from 'next-test-utils'
33

44
describe('global-not-found - multi root', () => {
5-
const { next, isNextDev } = nextTestSetup({
5+
const { next, isNextDev, skipped } = nextTestSetup({
66
files: __dirname,
7+
skipDeployment: true,
78
})
89

10+
// TODO(global-not-found): support deployment
11+
if (skipped) {
12+
return
13+
}
14+
915
it('should render global-not-found for 404', async () => {
1016
const browser = await next.browser('/does-not-exist')
1117
if (isNextDev) {

test/e2e/app-dir/global-not-found/not-present/not-present.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ import { nextTestSetup } from 'e2e-utils'
22

33
// TODO(global-not-found): remove this test when the feature is stable
44
describe('global-not-found - not-present', () => {
5-
const { next } = nextTestSetup({
5+
const { next, skipped } = nextTestSetup({
66
files: __dirname,
7+
skipDeployment: true,
78
})
89

10+
// TODO(global-not-found): support deployment
11+
if (skipped) {
12+
return
13+
}
14+
915
it('should render default 404 when global-not-found is not defined but enabled', async () => {
1016
const browser = await next.browser('/does-not-exist')
1117
const bodyText = await browser.elementByCss('body').text()

0 commit comments

Comments
 (0)