Skip to content

Commit

Permalink
Setup new mochify
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni authored and fatso83 committed Sep 24, 2021
1 parent c3bc599 commit 6d50be4
Show file tree
Hide file tree
Showing 4 changed files with 1,356 additions and 1,922 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -59,10 +59,10 @@ jobs:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
- name: Integration
run: |
export SINON_CHROME_BIN=$(which google-chrome-stable)
export PUPPETEER_EXECUTABLE_PATH=$(which google-chrome-stable)
# test-coverage runs test-headless in Chrome
npm run test-headless -- --chrome $SINON_CHROME_BIN --allow-chrome-as-root
npm run test-headless
saucelabs-test:
if: ${{ github.ref == 'refs/heads/master' }}
Expand Down
25 changes: 25 additions & 0 deletions mochify.webdriver.js
@@ -0,0 +1,25 @@
"use strict";

module.exports = {
driver: "webdriver",
// eslint-disable-next-line camelcase
driver_options: {
// Tests must run on a http website for Microsoft Edge to have
// sessionStorage.
url: "http://maxantoni.de/doctype.html",
hostname: "ondemand.saucelabs.com",
path: "/wd/hub",
port: 80,
capabilities: {
browserName: process.env.BROWSER_NAME,
browserVersion: "latest",
"sauce:options": {
build: `${process.env.BROWSER_NAME} ${
process.env.GITHUB_RUN_NUMBER || Date.now()
}`,
username: process.env.SAUCE_USERNAME,
accessKey: process.env.SAUCE_ACCESS_KEY,
},
},
},
};

0 comments on commit 6d50be4

Please sign in to comment.