stable
Clone or download
Read-only
fix request #31058: user preferences e2e tests are failing
It looks like that the failing assertion should have never worked: ``` cy.get("[data-user-has-accessibility-mode]").contains(1); ``` If I understand well, it basically search for the text `1` in the `body`… 🤔 Now we check that the data attribute is equal to `1`. Took the opportunity to be able to run multiple times the tests because it is a real PITA to run user pref tests with the same account, since changes are not reset after tests. On the bonus side, this adds a basic coverage of user registration. Change-Id: Ie41b7a63638cb9e4791dfc50a0736578685c91b9
Modified Files
Name | ||||
---|---|---|---|---|
M | lib/test-utils/cypress-utilities-support/src/commands-type-definitions.d.ts | +0 | −2 | Go to diff View file |
M | lib/test-utils/cypress-utilities-support/src/commands.ts | +0 | −4 | Go to diff View file |
M | src/templates/account/register-form-start.mustache | +1 | −0 | Go to diff View file |
M | src/templates/account/register-user.mustache | +5 | −1 | Go to diff View file |
M | tests/e2e/full/cypress/e2e/user_preferences.cy.ts | +26 | −3 | Go to diff View file |