1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Remove FEATURE_NEXTJS Flag Part 1 (#20176)

* cleanup FEATURE_NEXTJS

* fixing some server tests

* updating article a for server tests

* update h2 to h4 map topic tests

* data off on TOCs

* updating dropdown article versions links

* Update so markdown renders in intros

* updating typo and all server tests are now passing

* remove nextjs feature flag

* head.js tests pass

* updating article-version-picker

* remove nextjs feature flag browser test

* update header.js tests

* fix page-titles.js test

* fix deprecated-enterprise versions

* adding early access

* testing

* getting childTocItem

* fixing table of contents to show child toc items

* updated to 2 because the sidebar article also has the same link

* remove comment

* updating pick

* Update TocLandingContext.tsx

* update package.json and change className to h4 for h2

* updating with mikes feedback

* remove a.active test

* React clean up: Delete unnecessary layouts/includes Part 2 (#20143)

* Delete unnecessary layouts

* setting back tests failing :(

* update layouts

* delete unnecessary includes

* remove github-ae-release-notes and updating layouts

* remove a.active test
This commit is contained in:
Grace Park
2021-07-16 14:54:25 -07:00
committed by GitHub
parent 741ca7e481
commit 27aa5d92ea
72 changed files with 105 additions and 1878 deletions

View File

@@ -1,13 +1,9 @@
import fs from 'fs'
import path from 'path'
import sleep from 'await-sleep'
import { jest } from '@jest/globals'
import { latest } from '../../lib/enterprise-server-releases.js'
import languages from '../../lib/languages.js'
/* global page, browser */
const featureFlags = JSON.parse(fs.readFileSync(path.join(process.cwd(), './feature-flags.json')))
describe('homepage', () => {
jest.setTimeout(60 * 1000)
@@ -355,19 +351,6 @@ describe('GraphQL Explorer', () => {
})
})
describe('nextjs query param', () => {
jest.setTimeout(60 * 1000)
it('landing page renders through nextjs pipeline depending on FEATURE_NEXTJS value', async () => {
const flagVal = featureFlags.FEATURE_NEXTJS
await page.goto('http://localhost:4001/en/actions?nextjs=')
const IS_NEXTJS_PAGE = await page.evaluate(() => window.IS_NEXTJS_PAGE)
const nextWrapper = await page.$('#__next')
flagVal === true ? expect(nextWrapper).toBeDefined() : expect(nextWrapper).toBeNull()
flagVal === true ? expect(IS_NEXTJS_PAGE).toBe(true) : expect(IS_NEXTJS_PAGE).toBe(false)
})
})
// Skipping because next/links are disabled by default for now
describe.skip('next/link client-side navigation', () => {
jest.setTimeout(60 * 1000)