Details
-
Bug
-
Resolution: Fixed
-
Critical
-
4.3.x-dev, 4.4.0, 4.2.3
-
[4.5] - Sprint 6
Description
Setting the "Enabled" checkbox in tests is not stable, the tests are sometimes failing when doing so. I was not able to reproduce it manually.
This failure comes in two variants:
1) The field does not change to enabled:
And I set content fields for user # Ibexa\AdminUi\Behat\BrowserContext\ContentUpdateContext::iSetFieldsForUser() | label | Username | Password | Confirm password | Email | Enabled | | User account | testuser | Test1234pw | Test1234pw | test@test.com | Yes | Ibexa\Behat\Browser\Exception\TimeoutException: Element with CSS locator 'buttonEnabledToggleConfirmation': '.ibexa-toggle--is-checked' was not found. Timeout value: 10 seconds. in vendor/ibexa/behat/src/lib/Browser/Element/BaseElement.php:59
Example failure:
https://github.com/ibexa/experience/actions/runs/3633750760/jobs/6131123800
2) The field is not set as enabled in User view
And content attributes equal # Ibexa\AdminUi\Behat\BrowserContext\ContentViewContext::contentAttributesEqual() | label | Username | Email | Enabled | | User account | testuser | test@test.com | Yes | Expected: Yes Actual: No Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Yes' +'No'
Example failure: https://github.com/ibexa/commerce/actions/runs/3633819650/jobs/6131341330