mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-29 05:00:20 +00:00
Retry flaky tests
This commit is contained in:
parent
a07aff1e8c
commit
d5f3230f6f
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -154,7 +154,15 @@ jobs:
|
|||||||
- run: npm start &
|
- run: npm start &
|
||||||
- run: npm run wait-for-server
|
- run: npm run wait-for-server
|
||||||
- name: ${{ matrix['test-file'] }}
|
- name: ${{ matrix['test-file'] }}
|
||||||
run: npx jest -c ./jest.config.playwright.js ${{ matrix['test-file'] }}
|
run: |
|
||||||
|
# Run tests up to three times
|
||||||
|
n=0
|
||||||
|
until [ "$n" -ge 3 ]
|
||||||
|
do
|
||||||
|
npx jest -c ./jest.config.playwright.js ${{ matrix['test-file'] }} && break
|
||||||
|
n=$((n+1))
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
shell: bash
|
shell: bash
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: failure()
|
if: failure()
|
||||||
|
@ -9,9 +9,5 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
contextOptions: {
|
contextOptions: {
|
||||||
ignoreHTTPSErrors: true,
|
ignoreHTTPSErrors: true,
|
||||||
viewport: {
|
|
||||||
width: 1920,
|
|
||||||
height: 1080,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user