Unverified Commit 9df56c2c authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

test: disable metadata streaming deployment tests (#76335)

parent 9a3d5a5e
......@@ -7,10 +7,13 @@ function countSubstring(str: string, substr: string): number {
}
describe('ppr-metadata-blocking', () => {
const { next, isNextDev, isNextStart } = nextTestSetup({
const { next, isNextDev, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) return
// No dynamic APIs used in metadata
describe('static metadata', () => {
it('should generate metadata in head when page is fully static', async () => {
......@@ -99,8 +102,7 @@ describe('ppr-metadata-blocking', () => {
})
})
// Disable deployment until we support it on infra
if (isNextStart) {
if (!isNextDev) {
// This test is only relevant in production mode, as it's testing PPR results
describe('html limited bots', () => {
it('should serve partial static shell when normal UA requests the page', async () => {
......
......@@ -10,10 +10,13 @@ function countSubstring(str: string, substr: string): number {
}
describe('ppr-metadata-streaming', () => {
const { next, isNextDev, isNextStart } = nextTestSetup({
const { next, isNextDev, isNextDeploy, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) return
// No dynamic APIs used in metadata
describe('static metadata', () => {
it('should generate metadata in head when page is fully static', async () => {
......@@ -96,8 +99,8 @@ describe('ppr-metadata-streaming', () => {
})
})
// Disable deployment until we support it on infra
if (isNextStart) {
// Skip the deployment tests for html limited bots
if (!isNextDev && !isNextDeploy) {
// This test is only relevant in production mode, as it's testing PPR results
describe('html limited bots', () => {
it('should serve partial static shell when normal UA requests the page', async () => {
......
......@@ -4,8 +4,9 @@ import { nextTestSetup } from 'e2e-utils'
process.env.__NEXT_EXPERIMENTAL_PPR = 'true'
describe('app-dir - metadata-streaming-config-customized', () => {
const { next } = nextTestSetup({
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
overrideFiles: {
'next.config.js': `
module.exports = {
......@@ -19,6 +20,8 @@ describe('app-dir - metadata-streaming-config-customized', () => {
},
})
if (skipped) return
it('should have the customized streaming metadata config output in routes-manifest.json', async () => {
const prerenderManifest = JSON.parse(
await next.readFile('.next/prerender-manifest.json')
......
......@@ -4,10 +4,13 @@ import { nextTestSetup } from 'e2e-utils'
process.env.__NEXT_EXPERIMENTAL_PPR = 'true'
describe('app-dir - metadata-streaming-config', () => {
const { next } = nextTestSetup({
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) return
it('should have the default streaming metadata config output in routes-manifest.json', async () => {
const requiredServerFiles = JSON.parse(
await next.readFile('.next/required-server-files.json')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment