[Koha-bugs] [Bug 34076] [ALTERNATE] [DOCS] Automated screenshots using Cypress.io testing framework

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 21 14:38:05 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34076

--- Comment #19 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
(In reply to Caroline Cyr La Rose from comment #17)
> On step 5, all the tests end up red (they were all green in step 3), and I
> only have 3 screenshots. I have a lot of languages installed on my Koha, I
> don't know if that's why. I only enabled the 4 languages in the preferences
> on step 1c (en, fr-CA, fr-FR, es-ES), but I have like 6 or 7 language
> options in total.
> 
> Error in 0-language-ui.ts https://snipboard.io/NZo0Lm.jpg
> Error in 1-sysprefs.ts https://snipboard.io/im6WlB.jpg
> Error in 2-checkouts.ts https://snipboard.io/OJ6wVE.jpg
> Error in 3-patrons.ts https://snipboard.io/4yj2w8.jpg

Problems can appear with translated interfaces if the templates have not been
"installed" (ie. updated) after the "git checkout"

> On step 6, removing the "first libraries 'it'" is lines 7 to 9 (it wasn't
> clear to me where the element ended, so I had to go by trial and error).
> 
>   1 describe("Libraries", function () {
>   2     beforeEach(() => {
>   3         cy.login();
>   4         cy.set_cookie_lang();
>   5     });
>   6 
>   7     it("librarylist", function () {
>   8         assert(true);
>   9     });
>  10 
>  11     /* ==== Test Created with Cypress Studio ==== */
>  12     it('librarylist', function() {
>  13         /* ==== Generated with Cypress Studio ==== */
>  14         cy.get(':nth-child(2) > .biglinks-list > :nth-child(6) >
> .icon_general').click();
>  15         cy.get(':nth-child(1) > :nth-child(4) > :nth-child(1) >
> a').click();
>  16         cy.get('main').should('be.visible');
>  17         /* ==== End Cypress Studio ==== */
>  18     });
>  19 });
> 
>  In step 6 still, the first commit command didn't work for me, I think
> because the file did not exist before (nothing added to commit but untracked
> files present (use "git add" to track)), so I did
> 
>     git add 4-library.ts
> 
>     git commit -m "auto librarylist"
> 
> I did this in ktd --shell, but I think it might have worked in my host too,
> I'm not sure.
> 
> Haven't tried step 7 yet...

yes, git commands can be done in ktd or on the host.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list