Skip to content

Commit

Permalink
Travis: Install Google Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
piecioshka committed May 14, 2019
1 parent 8af30a5 commit 97a75d7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
@@ -1,5 +1,15 @@
language: node_js

os:
- linux
- osx

node_js:
- "12"
script:
- xvfb-run npm test
- "11"
- "10"
- "9"
- "8"

addons:
chrome: stable
11 changes: 9 additions & 2 deletions nightwatch.conf.js
@@ -1,16 +1,23 @@
module.exports = {
"src_folders": ["test"],

"detailed_output": false,

"webdriver": {
"start_process": true,
"server_path": "node_modules/.bin/chromedriver",
"server_path": 'node_modules/.bin/chromedriver',
"port": 9515
},

"test_settings": {
"default": {
"desiredCapabilities": {
"browserName": "chrome"
"browserName": "chrome",
"chromeOptions": {
"args": [
"--headless"
]
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Expand Up @@ -26,7 +26,7 @@ test('Spr. czy jest odpowiednia liczba element贸w w menu', async (client) => {
await setup(client);
await client.elements('css selector', '.menu-item', (result) => {
const menuSize = result.value.length;
client.assert.equal(menuSize, 9);
client.assert.equal(menuSize, 10);
});
// await teardown(client);
});

0 comments on commit 97a75d7

Please sign in to comment.