Skip to content

Commit

Permalink
Migrate classifications and taxa collections to API (#3005)
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

* check for window to fix crash on build time

* Migrate csettool

* Fix tests

* Make it easier to debug playwright on ci

* Fix wrong query

* Fix tests

* Use more verbose reporter

* auto restart webserver on crash

* accept npx

* Fix test

* Fix test

* Fix test

* Remove confusing folder

* Add clarifying comment back

* Fix test

* Fix test

* Add comment
  • Loading branch information
cesarvarela authored Aug 26, 2024
1 parent 0470e73 commit 54282d9
Show file tree
Hide file tree
Showing 47 changed files with 7,572 additions and 2,132 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test-playwright-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,17 @@ jobs:
working-directory: site/gatsby-site

- name: Run playwright tests
run: npx playwright test playwright/e2e-full/ --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
run: npm run test:e2e:ci
working-directory: site/gatsby-site
env:
E2E_ADMIN_PASSWORD: ${{ secrets.E2E_ADMIN_PASSWORD }}
E2E_ADMIN_USERNAME: ${{ secrets.E2E_ADMIN_USERNAME }}
IS_EMPTY_ENVIRONMENT: ${{ vars.IS_EMPTY_ENVIRONMENT }}
MONGODB_CONNECTION_STRING: mongodb://127.0.0.1:4110/
GATSBY_AVAILABLE_LANGUAGES: ${{ vars.GATSBY_AVAILABLE_LANGUAGES }}
SHARD_INDEX: ${{ matrix.shardIndex }}
SHARD_TOTAL: ${{ matrix.shardTotal }}
TEST_FOLDER: playwright/e2e-full/

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,16 @@ jobs:
working-directory: site/gatsby-site

- name: Run playwright tests
run: npx playwright test playwright/e2e/ --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
run: npm run test:e2e:ci
working-directory: site/gatsby-site
env:
E2E_ADMIN_PASSWORD: ${{ secrets.E2E_ADMIN_PASSWORD }}
E2E_ADMIN_USERNAME: ${{ secrets.E2E_ADMIN_USERNAME }}
IS_EMPTY_ENVIRONMENT: ${{ vars.IS_EMPTY_ENVIRONMENT }}
GATSBY_AVAILABLE_LANGUAGES: ${{ vars.GATSBY_AVAILABLE_LANGUAGES }}
SHARD_INDEX: ${{ matrix.shardIndex }}
SHARD_TOTAL: ${{ matrix.shardTotal }}
TEST_FOLDER: playwright/e2e/

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down

This file was deleted.

Loading

0 comments on commit 54282d9

Please sign in to comment.