Drupal 10 compatibility: Fix BDD error when deleting a user to support drupal/core:^10

Created on 18 April 2023, over 1 year ago
Updated 19 April 2023, over 1 year ago

Problem/Motivation

  • Fix the following error during the BDD testing:
        And I select the radio button "Delete the account and its content. Entities provided by Cloud modules are reassigned to Anonymous user. This action cannot be undone." # Drupal\DrupalExtension\Context\MinkContext::assertSelectRadioById()
          The radio button with "Delete the account and its content. Entities provided by Cloud modules are reassigned to Anonymous user. This action cannot be undone." was not found on the page http://localhost/admin/people (Exception)
        │
        │  Screenshot at: sites/screenshots/041523-182048_OpenStack-ATDD-99-99-DeleteDrupalResources_27F.png
        │
        └─ @AfterStep # Drupal\DrupalExtension\Context\DrupalContext::takeScreenshotOnFailure()
        And I press "Confirm"                                                                                                                                                  # Drupal\DrupalExtension\Context\MinkContext::pressButton()
        And I wait for AJAX to finish                                                                                                                                          # Drupal\DrupalExtension\Context\MinkContext::iWaitForAjaxToFinish()
        Then I should see the success message "has been deleted."                                                                                                              # Drupal\DrupalExtension\Context\MessageContext::assertSuccessMessage()
        And I should see neither error nor warning messages                                                                                                                    # Drupal\DrupalExtension\Context\MessageContext::assertErrorWarningNotVisible()
        And I should not see the link "BDD_user_2a3d5be"                                                                                                                       # Drupal\DrupalExtension\Context\MinkContext::assertNotLinkVisible()
        And I should not see the link "BDD_admin_2a3d5be"                                                                                                                      # Drupal\DrupalExtension\Context\MinkContext::assertNotLinkVisible()
    --- Failed scenarios:
        features/tmp.20230415_102313.8feI7v/OpenStack-ATDD-99-99-DeleteDrupalResources.feature:17
    
💬 Support request
Status

Fixed

Version

6.0

Component

Code

Created by

🇺🇸United States yas California 🇺🇸

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024