diff --git a/.github/workflows/mocha_tests.yml b/.github/workflows/mocha_tests.yml index c0a9c484..310a307f 100644 --- a/.github/workflows/mocha_tests.yml +++ b/.github/workflows/mocha_tests.yml @@ -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 @@ -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 \ No newline at end of file + env: + BROWSER: ${{ matrix.browser }} \ No newline at end of file diff --git a/tests/test/gene_collection_manager.test.js b/tests/test/gene_collection_manager.test.js index a75113a1..bb1483a8 100644 --- a/tests/test/gene_collection_manager.test.js +++ b/tests/test/gene_collection_manager.test.js @@ -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;