https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39320
--- Comment #152 from Tomás Cohen Arazi (tcohen) <[email protected]> --- (In reply to Pedro Amorim from comment #151) > (In reply to Tomás Cohen Arazi (tcohen) from comment #111) > > I wasn't able to run the tests successfully > > I'm fairly certain this is a resource usage problem. For each of the widgets > the full dashboard and all widgets are loaded every time. I've already > stubbed all API requests which improved this massively but tests still > sometimes fail if CPU is under heavy usage (from my testing). > If I restart my laptop and immediately run the tests in headless they all > pass every time. > > When running tests using the browser, all tests pass because oddly enough > Cypress appears to use more resources when in headless mode. > > Adding this to e2e section in cypress.config.ts has also massively improved > this but still stometimes (very rarely) fail: > > video: false, > screenshotOnRunFailure: false, > numTestsKeptInMemory: 0, > > In short, I believe there's nothing wrong with the tests, it's just they run > too fast and use too many resources and sometimes fail because of it. Other > opinions / approaches are welcome here of course. Should we enable those options by default? It seems many problems we have with Cypress are related to this. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
