Skip to content

Commit

Permalink
adding browser iteration in actions YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Dec 7, 2023
1 parent 0a688aa commit 3b620e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/mocha_tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Runs mocha tests
# Tests are built to run on 5 browser modes (chrome, firefox, webkit/safari, iPhone, Pixel)
# Normally, each test is built to loop through all 5 modes, but if hooks fail, the test will stop

# TODO: Set user/pass secret to send to mocha tests

Expand All @@ -25,15 +26,19 @@ jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
browser: [chromium, firefox, webkit, iphone, pixel]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install && npx playwright install-deps
- name: Run Mocha tests
run: npm test # alias to "mocha test"
continue-on-error: true
env:
BROWSER: ${{ matrix.browser }}
2 changes: 1 addition & 1 deletion tests/test/gene_collection_manager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const login = async (page) => {

describe('Gene Collection Manager', function () {

this.timeout(10000); // default is 2000
//this.timeout(10000); // default is 2000

let browserIndex = 0;

Expand Down

0 comments on commit 3b620e7

Please sign in to comment.