Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for visual regression tests #384

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

reekitconcept
Copy link
Member

  • add cypress plugin dependency

  • add cypress configuration files for visual targets

  • configure Makefile

  • configure github plugin for CI

  • customize and fix image snapshot generation

    • customize snapshots folder location
    • fix scrollability of css for full-page screenshots
    • fix lazy image loading
    • disable hover effect on images
    • disable hyphenation (currently disabled but code is available)
    • limit browser to firefox only
  • test utilities

    • generate series of tests for different resolutions
    • generate series of tests visiting a list of urls
    • cumulative testing
  • add base.js test that

    • tests two pages in anonymous view and serves as an example
    • test a list of pages as an example
    • same in authenticated mode

@reekitconcept reekitconcept added the enhancement New feature or request label May 14, 2024
@reekitconcept reekitconcept force-pushed the ree-visual-acceptance-tests branch 3 times, most recently from 0d74ef6 to 384cfe8 Compare May 15, 2024 09:55
- add cypress plugin dependency
- add cypress configuration files for visual targets
- configure Makefile
- configure github plugin for CI
- customize and fix image snapshot generation
  - customize snapshots folder location
  - fix scrollability of css for full-page screenshots
  - fix lazy image loading
  - disable hover effect on images
  - disable hyphenation (currently disabled but code is available)
  - limit browser to firefox only
- test utilities
  - generate series of tests for different resolutions
  - generate series of tests visiting a list of urls
  - cumulative testing

- add base.js test that
  * tests two pages in anonymous view and serves as an example
  * test a list of pages as an example
  * same in authenticated mode
@reekitconcept reekitconcept changed the title WIP Add support for visual regression tests Add support for visual regression tests May 15, 2024
@sneridagh
Copy link
Member

@reekitconcept Looks awesome! LGTM, however, I'm missing some docs, afterwards, let's merge it right away.

  • how to add new tests/snapshots
  • how (if we can) run locally, etc...

@tisto We need to talk to you about how to deal with that last ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants