Skip to content

Commit

Permalink
Update test and package json
Browse files Browse the repository at this point in the history
  • Loading branch information
twclark0 committed Jan 8, 2018
1 parent b1a427b commit 61f3be0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"jest-cli": "^22.0.4",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "1.0.17"
Expand All @@ -17,6 +16,7 @@
},
"devDependencies": {
"faker": "^4.1.0",
"jest-cli": "^22.0.4",
"jest": "^22.0.4",
"puppeteer": "^0.13.0"
}
Expand Down
23 changes: 3 additions & 20 deletions src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ const isDebugging = () => {
let debugging_mode = {
headless: false,
slowMo: 250,
// executablePath: string (path to chrome or custom chromium)
// timeout: number (default is 30 seconds, 0 means disable)
// ignoreHTTPSErrors: bool (Whether to ignore HTTPS errors during navigation. Defaults to false.)
devtools: true // headless option will be set to false
devtools: true
}
return process.env.NODE_ENV === 'debug' ? debugging_mode : false;
};
Expand All @@ -20,15 +17,9 @@ test('First test', async () => {
viewport: {
width: 500,
height: 2400
// isMobile: bool,
// hasTouch: bool,
// isLandscape: bool
},
userAgent: ''
}, 16000)

// page.setUserAgent(userAgent)
// page.setViewport(viewport)
})

await page.goto('http://localhost:3000/')
await page.waitForSelector('.App-title')
Expand All @@ -39,12 +30,4 @@ test('First test', async () => {

browser.close()

})


// Puppeteer requires at least Node v6.4.0, but the examples below use async/await which is only supported in Node v7.6.0 or greater

// The easiest way to get started with headless mode is to open the Chrome binary from the command line. If you've got Chrome 59+ installed, start Chrome with the --headless flag

// The --repl flag runs Headless in a mode where you can evaluate JS expressions in the browser, right from the command line:

}, 16000)

0 comments on commit 61f3be0

Please sign in to comment.