Bug 29716 - [DOCS] Automated screenshots using Cypress.io testing framework
Summary: [DOCS] Automated screenshots using Cypress.io testing framework
Status: RESOLVED MOVED
Alias: None
Product: Koha
Classification: Unclassified
Component: Documentation (show other bugs)
Version: Main
Hardware: All All
: P4 enhancement
Assignee: David Nind
QA Contact: Testopia
URL: https://codeberg.org/davidnind/koha-a...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-16 15:37 UTC by David Nind
Modified: 2023-09-27 09:43 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Nind 2021-12-16 15:37:14 UTC
See if we can automate the capture of as many screenshots as possible for the Koha documentation, in as many languages as possible.
Comment 1 David Nind 2021-12-16 15:39:45 UTC
I've added a URL for a Git repository and work I had done some time ago.

Need to refresh the tooling and see if any other options are available.

See also this information on the Wiki:
https://wiki.koha-community.org/wiki/Documentation_Automated_Screencapture
Comment 2 David Nind 2022-12-01 11:47:52 UTC
I've been experimenting with using Cypress.io to generate screenshots - it seems to work OK.

It uses Node.js and the Cypress.io testing framework library.

See the repository https://codeberg.org/davidnind/koha-automated-screenshots

Just some basic examples for the moment, more to add to more comprehensively test and generate a wider range of screenshots.
Comment 3 Jonathan Druart 2023-03-29 08:37:07 UTC
>  cy.title().should("eq", "Koha staff interface")

You should not write such tests, it will fail if the interface is translated ;)
Comment 4 David Nind 2023-09-27 09:43:20 UTC
Closing this bug as the work is now being done on bug 34076