Skip to content

Commit

Permalink
Fix/update tests (#3027)
Browse files Browse the repository at this point in the history
* Add taxa seeds

* Reapply "Add classifications collection to api"

This reverts commit 5d3aed2.

* Fix upsert mutations

* Fix classification editor tests

* Update components

* Move to correct folder

* Fix mutations handling of relationships

* Update client side query variables

* Undo debug comments

* Update generated code

* temporary silence warning

* Update playwright login util to allow mocking local storage session

* migrate classifications test

* Update test

* Update tests to use new login fixture

* Fix tests

* Skip data dependant test

* Prevent login util from dropping users database

* WIP

* Fix custom data mocking

* Delete old mutation

* delete old test

* Update user queries

* Make logs less verbose

* Update tests

* Migrate test

* Remove slow clause

* Migrate submitted app tests

* Fix subscriptions with users linking

* Undo changes

* migrate test

* Have leftover cypress tests point to local api

* Migrate checklists form tests

* Remove test.slow calls

* Add one more retry

* updates

* fix imports

* Update tests

* Improve util

* Migrate test to full e2e

* skip tests

* use new login userId

* reduce flake

* Fix test

* update test

* add one more retry

* role self is now it's own rule
  • Loading branch information
cesarvarela authored Sep 3, 2024
1 parent 5917ec7 commit 64e1275
Show file tree
Hide file tree
Showing 44 changed files with 2,608 additions and 6,436 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test-playwright-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2, 3, 4, 5, 6]
shardTotal: [6]
shardIndex: [1, 2, 3, 4, 5, 6, 7, 8]
shardTotal: [8]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -127,12 +127,20 @@ jobs:
SHARD_TOTAL: ${{ matrix.shardTotal }}
TEST_FOLDER: playwright/e2e-full/

- name: Upload Playwright traces
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-traces-${{ matrix.shardIndex }}
path: site/gatsby-site/test-results/**/*.zip
retention-days: 7

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: blob-report-full-${{ matrix.shardIndex }}
path: site/gatsby-site/blob-report/
retention-days: 1
retention-days: 7

merge-reports:
# Merge reports after playwright-tests, even if some shards have failed
Expand Down
Loading

0 comments on commit 64e1275

Please sign in to comment.