Skip to content

Commit

Permalink
Disable Firefox latest in cross-browser tests and disable end-to-end …
Browse files Browse the repository at this point in the history
…tests #894 (#895)
  • Loading branch information
Jaifroid authored Nov 4, 2022
1 parent fa944fe commit 56906d5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 31 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,27 +90,27 @@ jobs:


# Start a SauceLabs tunnel for Nightwatch (Karma does this automatically)
- name: Start tunnel for End-to-end tests
uses: saucelabs/[email protected]
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
# - name: Start tunnel for End-to-end tests
# uses: saucelabs/[email protected]
# with:
# username: ${{ secrets.SAUCE_USERNAME }}
# accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}

- name: End-to-end tests (Cross-browser)
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: |
./node_modules/.bin/http-server . &
sleep 2
curl "http://localhost:8080" | head
# The free account on Sauce does not allow more than 5 concurrent sessions (including the main one)
# So we separate the recent and old browsers in order to respect this limit.
# REMINDER: Keep this list in sync with the Unit tests, in tests/karma.conf.saucelabs.js
./node_modules/.bin/nightwatch -c nightwatch.js --env firefox,chrome,edge
./node_modules/.bin/nightwatch -c nightwatch.js --env edge40,edge44
./node_modules/.bin/nightwatch -c nightwatch.js --env firefox45,chrome58,ie11
pkill node || echo "Node process not running (anymore)"
# - name: End-to-end tests (Cross-browser)
# env:
# SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
# SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
# run: |
# ./node_modules/.bin/http-server . &
# sleep 2
# curl "http://localhost:8080" | head
# # The free account on Sauce does not allow more than 5 concurrent sessions (including the main one)
# # So we separate the recent and old browsers in order to respect this limit.
# # REMINDER: Keep this list in sync with the Unit tests, in tests/karma.conf.saucelabs.js
# ./node_modules/.bin/nightwatch -c nightwatch.js --env chrome,edge
# ./node_modules/.bin/nightwatch -c nightwatch.js --env edge40,edge44
# ./node_modules/.bin/nightwatch -c nightwatch.js --env firefox52,chrome58
# pkill node || echo "Node process not running (anymore)"

# Tests the list of offline files in the Service Worker and compares it to the contents of the www directory
test-offline-files:
Expand Down
5 changes: 3 additions & 2 deletions nightwatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ module.exports = {
"waitForConditionTimeout": 600
}
},
"firefox45" : {
"firefox52" : {
"desiredCapabilities": {
"browserName": "firefox",
"version": "45.0",
"version": "52.0",
"javascriptEnabled": true,
"acceptSslCerts": true,
"build": build
Expand All @@ -58,6 +58,7 @@ module.exports = {
"firefox" : {
"desiredCapabilities": {
"browserName": "firefox",
"version": "latest",
"javascriptEnabled": true,
"acceptSslCerts": true,
"build": build
Expand Down
21 changes: 12 additions & 9 deletions tests/karma.conf.saucelabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,57 +10,60 @@ module.exports = function (config) {
accessKey: process.env.SAUCE_ACCESS_KEY
},
customLaunchers: {
firefox45: {
firefox52: {
base: 'SauceLabs',
browserName: 'firefox',
version: '45.0'
version: '52.0'
},
firefox: {
base: 'SauceLabs',
browserName: 'firefox',
version: 'latest'
},
chrome58: {
base: 'SauceLabs',
browserName: 'chrome',
version: '58.0',
version: '58.0'
},
chrome: {
base: 'SauceLabs',
browserName: 'chrome',
version: 'latest'
},
edge: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
version: 'latest'
},
edge40: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
version: '15.15063',
version: '15.15063'
},
edge44: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
version: '18.17763',
version: '18.17763'
},
ie11: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: 'latest'
}
},
// The free account on Sauce does not allow more than 5 concurrent sessions
concurrency: 4,

// REMINDER: Keep this list in sync with the UI tests, in .github/workflows/CI.yml.
browsers: [
'firefox',
// 'firefox', // Disable latest Firefox due to #894
'chrome',
'edge',
'edge40',
'edge44',
'firefox45',
'firefox52',
'chrome58'
// Skip unit tests in Internet Explorer due to Promise undefined
// 'ie11'
// 'ie11' // Disable IE11 due to Promise error
],
frameworks: ['qunit'],
client: {
Expand Down

0 comments on commit 56906d5

Please sign in to comment.