stable

Clone or download

Read-only

fixes request #38281 Update flacky test Mediawiki standalone

Why? Mediawiki is created asynchronously, according to logs we access the instance before the mediawiki `tuleap.mediawiki-standalone.instance-creation` is fully created, which ended in a 500 error in home page ``` 2024-06-04T08:25:02+02:00 [3730] [info] Processing tuleap.mediawiki-standalone.instance-creation: ... 2024-06-04T08:25:02+02:00 [3730] [debug] GET https://tuleap/mediawiki/w/rest.php/tuleap/instance/mw-standalone-1717482298774 2024-06-04T08:25:02+02:00 [3730] [debug] {"message":"Instance mw-standalone-1717482298774 does not exist","httpCode":404,"httpReason":"Not Found"} ... 175) 2024-06-04T08:25:55+02:00 [3717] [info] Project mw-standalone-1717482298774 created ``` Note: I did not manage to reproduce the issue locally I choose to stop failing when error is thrown in this page, and add some dely (1s) by tentative according to the times of previous logs (catched on our CI server) it should be good enough Change-Id: I34b12f2c4fc6e674436331d4a9cb88a91d22f2d4

Modified Files

Name
M lib/test-utils/cypress-utilities-support/src/commands-type-definitions.d.ts +5 −1 Go to diff View file
M lib/test-utils/cypress-utilities-support/src/commands.ts +6 −2 Go to diff View file
M plugins/mediawiki_standalone/tests/e2e/cypress/cypress/e2e/mediawiki-standalone.cy.ts +4 −1 Go to diff View file