Skip to content

Commit

Permalink
Reenable AMP Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Oct 22, 2019
1 parent ae3410c commit 7f908c7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/integration/amp-export-validation/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/amphtml-fragment-style/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion test/integration/amphtml/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions test/integration/styled-jsx-module/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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/)
})
Expand Down

0 comments on commit 7f908c7

Please sign in to comment.