mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 20:14:35 -04:00
Improve stability and speed of E2E tests (#1319)
* Change cypress settings in CI job * Catch error from highlight js chunk loading in auto completion * Refactor code * Show notification if highlightjs loading failed Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a4d6de9555
commit
93722f4161
6 changed files with 132 additions and 50 deletions
11
.github/workflows/e2e.yml
vendored
11
.github/workflows/e2e.yml
vendored
|
@ -18,16 +18,16 @@ jobs:
|
|||
- name: Check out repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
|
||||
- name: Cache build
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: build
|
||||
key: build
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v2
|
||||
id: yarn-cache
|
||||
|
@ -57,6 +57,9 @@ jobs:
|
|||
name: Perform E2E Test in ${{ matrix.browser }}
|
||||
needs: build-frontend
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: cypress/browsers:node14.16.0-chrome90-ff88
|
||||
options: --user 1001 --shm-size=2g
|
||||
strategy:
|
||||
matrix:
|
||||
browser: [ 'chrome', 'firefox' ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue