Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4482

Tests fail to set the Enabled field during User creation

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.4.4
    • 4.3.x-dev, 4.4.0, 4.2.3
    • QA
    • [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

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              marek.nocon@ibexa.co Marek Nocoń
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: