Commit 12241384 authored by Joe Haddad's avatar Joe Haddad Committed by JJ Kasper

Fix Chrome-Only Tests (#9825)

parent 69a34dd7
...@@ -441,6 +441,7 @@ describe('Production Usage', () => { ...@@ -441,6 +441,7 @@ describe('Production Usage', () => {
} }
}) })
if (browserName === 'chrome') {
it('should add prefetch tags when Link prefetch prop is used', async () => { it('should add prefetch tags when Link prefetch prop is used', async () => {
const browser = await webdriver(appPort, '/prefetch') const browser = await webdriver(appPort, '/prefetch')
await waitFor(2000) await waitFor(2000)
...@@ -495,7 +496,9 @@ describe('Production Usage', () => { ...@@ -495,7 +496,9 @@ describe('Production Usage', () => {
const browserLogs = await browser.log('browser') const browserLogs = await browser.log('browser')
let foundLog = false let foundLog = false
browserLogs.forEach(log => { browserLogs.forEach(log => {
if (log.message.match(/\/no-such-page\.js - Failed to load resource/)) { if (
log.message.match(/\/no-such-page\.js - Failed to load resource/)
) {
foundLog = true foundLog = true
} }
}) })
...@@ -517,6 +520,7 @@ describe('Production Usage', () => { ...@@ -517,6 +520,7 @@ describe('Production Usage', () => {
await browser.close() await browser.close()
}) })
}
}) })
it('should not expose the compiled page file in development', async () => { it('should not expose the compiled page file in development', async () => {
......
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