Unverified Commit e42fdd82 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Reenable AMP Tests (#9162)

parent 60ff5cc7
......@@ -15,7 +15,7 @@ const nextConfig = new File(join(appDir, 'next.config.js'))
let buildOutput
xdescribe('AMP Validation on Export', () => {
describe('AMP Validation on Export', () => {
beforeAll(async () => {
const { stdout = '', stderr = '' } = await nextBuild(appDir, [], {
stdout: true,
......
......@@ -17,7 +17,7 @@ let appPort
let server
let app
xdescribe('AMP Fragment Styles', () => {
describe('AMP Fragment Styles', () => {
beforeAll(async () => {
await nextBuild(appDir)
app = nextServer({
......
......@@ -27,7 +27,7 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
const context = {}
xdescribe('AMP Usage', () => {
describe('AMP Usage', () => {
beforeAll(async () => {
await nextBuild(appDir)
app = nextServer({
......
......@@ -27,7 +27,7 @@ function runTests () {
expect(color).toMatch('0, 255, 255')
})
xit('should render styles during CSR (AMP)', async () => {
it('should render styles during CSR (AMP)', async () => {
const browser = await webdriver(appPort, '/amp')
const color = await browser.eval(
`getComputedStyle(document.querySelector('button')).color`
......@@ -41,7 +41,7 @@ function runTests () {
expect(html).toMatch(/color:.*?cyan/)
})
xit('should render styles during SSR (AMP)', async () => {
it('should render styles during SSR (AMP)', async () => {
const html = await renderViaHTTP(appPort, '/amp')
expect(html).toMatch(/color:.*?cyan/)
})
......
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