When a Playwright action (like click) fails we want it to throw an error
after 5 seconds instead of waiting 30 seconds for the test timeout.
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
The end-to-end tests no run against the app served on port 3001 so that
we don’t need to shut down the development server.
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
Also moves the HASH_ROUTING env variable from being modified inside the
hashRouter.spec.ts into the webserver config in the
playwright.config.ipfs.ts
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
We want to catch smaller changes. The threshold was too high to catch
the rounded corners change in a full-page screenshot.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
We use the cache Github action to store snapshots when pushing to master and
then load them in pull requests and run the visual tests against it.
This way we don't have to commit the images to the repository and always
get diffs to the latest master.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
Playwright is more flexible and has better developer experience than Cypress.
We add end to end tests covering:
- project source browsing
- tree view
- commit list view
- commit view
- routing
- hash based
- history API based
- clipboard copy paste functionality
- seed view
- project search
- landing page view
- settings
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>