Commit Graph
9 Commits
Author SHA1 Message Date
Sebastian Martinez 91866f6292 Add prefers-color-scheme query for theme fallback 2024-03-19 10:28:06 +01:00
Rūdolfs Ošiņš 5684b8ef42 Refactor visual tests
We use built in devices for testing instead of our own custom ones.
Split up desktop and mobile visual tests for better separation.
2024-01-05 17:45:20 +00:00
Thomas Scholtes e172aac1af Set Playwright action timeout for quicker failures
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>
2023-11-23 09:37:13 +01:00
Thomas Scholtes 999a3a4c30 Use non-dev port for webserver during end-to-end tests
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>
2023-07-09 13:54:24 +02:00
Sebastian Martinez 4c3bd7ee04 Fix statically replaced HASH_ROUTING env variables
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>
2023-04-03 11:50:24 +02:00
Rūdolfs Ošiņš a0f0cc549a Lower image diff threshold
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>
2023-02-13 14:40:58 +01:00
Rūdolfs Ošiņš 41168db8d5 Improve CI workflows
- bump visual spec timeouts
- don't warn if there are no artifacts
- revert unneeded workflow checks
- improve workflow messages

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-12-16 23:10:57 +01:00
Rūdolfs Ošiņš 2c022a40df Add visual snapshot tests
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>
2022-12-16 15:06:05 +01:00
Rūdolfs OšiņšandSebastian Martinez 9cb9332e88 Replace Cypress with Playwright
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>
2022-12-01 15:54:56 +01:00