[Koha-bugs] [Bug 29285] UI tests: Selenium 4 support or setup Cypress to make them rewritable with it

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 19 08:31:41 CET 2023


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

Victor Grousset/tuxayo <victor at tuxayo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|UI tests: Selenium 4        |UI tests: Selenium 4
                   |support                     |support or setup Cypress to
                   |                            |make them rewritable with
                   |                            |it

--- Comment #2 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Unfortunately yes and no.

Yes because Firefox is stuck at some old version (2 or 3 years old) because
only Selenium 4 supports recent ones.

No because Selenium tests are less reliable so higher maintenance. So the work
(kinda unpredictable like from Selenium 2 to 3) to change our Selenium lib
would not be worth for just prolonging their use.
The alternative is setting up Cypress to be able to replace Selenium. As
opposed to today.

Jonathan told me a few months what are the limitations:
No DB access to inject and delete/rollback data. That's why current Cypress
usage mocks all network queries.
Path forward would be to read koha-conf and use cypress-mysql (see
cypress-studio in Jonathan's GitLab repo)
Then the issue is data generation (no TestBuilder!) and cleaning.
«IMO there shouldn't be time spent on a migration to Selenium (at least for
now)»

That doesn't look a small task to find a trick to use TestBuilder or recode it
plus the rest so we are kinda stuck at the crossroads between the two ways.

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


More information about the Koha-bugs mailing list