Bug 29716

Summary: [DOCS] Automated screenshots using Cypress.io testing framework
Product: Koha Reporter: David Nind <david>
Component: DocumentationAssignee: David Nind <david>
Status: RESOLVED MOVED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P4 CC: aude.charillon, caroline.cyr-la-rose, jonathan.druart, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
URL: https://codeberg.org/davidnind/koha-automated-screenshots
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34076
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

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