Fix an error while clicking a 'Delete' button of VPC in drupal/aws_cloud

Created on 5 March 2024, 10 months ago
Updated 21 March 2024, 9 months ago

Problem/Motivation

  • Fix an error while clicking a Delete button of VPC in drupal/aws_cloud:
      @api @javascript
      Scenario: Delete the VPC                                                           # features/tmp.20240305_010039.xd3iol/AWS-ATDD-03-07-OperateVPCs.feature:53
        Given I am logged in as user "BDD_user_1b06966"                                  # Drupal\Tests\cloud\Behat\features\bootstrap\FeatureContext::iAmLoggedInAsUser()
        When I visit "/clouds/aws_cloud/bdd_aws_1b06966_ap_northeast_1/vpc"              # Drupal\DrupalExtension\Context\MinkContext::assertAtPath()
        And I click "Refresh"                                                            # Drupal\DrupalExtension\Context\MinkContext::assertClick()
        And I should see the link "BDD_VPC_1b06966_Updated_Operate"                      # Drupal\DrupalExtension\Context\MinkContext::assertLinkVisible()
        And I wait 500 milliseconds                                                      # Drupal\Tests\cloud\Behat\features\bootstrap\FeatureContext::waitMilliSeconds()
        And I click "BDD_VPC_1b06966_Updated_Operate"                                    # Drupal\DrupalExtension\Context\MinkContext::assertClick()
        And the url should match "/clouds/aws_cloud/bdd_aws_1b06966_ap_northeast_1/vpc/" # Drupal\DrupalExtension\Context\MinkContext::assertUrlRegExp()
        And I should see "BDD_VPC_1b06966_Updated_Operate" in the "page_header"          # Drupal\DrupalExtension\Context\MinkContext::assertRegionText()
        And I press "Others"                                                             # Drupal\DrupalExtension\Context\MinkContext::pressButton()
        And I should see "BDD_user_1b06966" in the "Authored by"                         # Drupal\DrupalExtension\Context\MinkContext::assertRegionText()
        And I should see neither error nor warning messages                              # Drupal\DrupalExtension\Context\MessageContext::assertErrorWarningNotVisible()
        And I click "Delete" in the "actions"                                            # Drupal\DrupalExtension\Context\MinkContext::assertRegionLinkFollow()
        And the url should match "/delete"                                               # Drupal\DrupalExtension\Context\MinkContext::assertUrlRegExp()
          Current page "/clouds/aws_cloud/bdd_aws_1b06966_ap_northeast_1/vpc/5" does not match the regex ""/delete"". (Behat\Mink\Exception\ExpectationException)
        β”‚
        β”‚  Screenshot at: sites/screenshots/030524-101644_AWS-ATDD-03-07-OperateVPCs_66-FAIL.png
        β”‚
        └─ @AfterStep # Drupal\Tests\cloud\Behat\features\bootstrap\FeatureContext::takeScreenshotOnFailure()
        And I press "Delete"                                                             # Drupal\DrupalExtension\Context\MinkContext::pressButton()
        Then I should be on "/clouds/aws_cloud/bdd_aws_1b06966_ap_northeast_1/vpc"       # Drupal\DrupalExtension\Context\MinkContext::assertPageAddress()
        And 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 click "Refresh"                                                            # Drupal\DrupalExtension\Context\MinkContext::assertClick()
        And I should not see the link "BDD_VPC_1b06966_Updated_Operate"   
    
      Scenario: Delete the VPC                                                           # features/tmp.20240305_135710.3wkher/AWS-ATDD-04-04-OperateCarrierGateways.feature:83
        Given I am logged in as user "BDD_user_ed246f8"                                  # Drupal\Tests\cloud\Behat\features\bootstrap\FeatureContext::iAmLoggedInAsUser()
        When I visit "/clouds/aws_cloud/bdd_aws_ed246f8_ap_northeast_1/vpc"              # Drupal\DrupalExtension\Context\MinkContext::assertAtPath()
        And I click "Refresh"                                                            # Drupal\DrupalExtension\Context\MinkContext::assertClick()
        And I should see the link "BDD_VPC_ed246f8_Operate"                              # Drupal\DrupalExtension\Context\MinkContext::assertLinkVisible()
        And I wait 500 milliseconds                                                      # Drupal\Tests\cloud\Behat\features\bootstrap\FeatureContext::waitMilliSeconds()
        And I click "BDD_VPC_ed246f8_Operate"                                            # Drupal\DrupalExtension\Context\MinkContext::assertClick()
        And the url should match "/clouds/aws_cloud/bdd_aws_ed246f8_ap_northeast_1/vpc/" # Drupal\DrupalExtension\Context\MinkContext::assertUrlRegExp()
        And I should see "BDD_VPC_ed246f8_Operate" in the "page_header"                  # Drupal\DrupalExtension\Context\MinkContext::assertRegionText()
        And I press "Others"                                                             # Drupal\DrupalExtension\Context\MinkContext::pressButton()
        And I should see "BDD_user_ed246f8" in the "Authored by"                         # Drupal\DrupalExtension\Context\MinkContext::assertRegionText()
        And I should see neither error nor warning messages                              # Drupal\DrupalExtension\Context\MessageContext::assertErrorWarningNotVisible()
        And I click "Delete" in the "actions"                                            # Drupal\DrupalExtension\Context\MinkContext::assertRegionLinkFollow()
        And the url should match "/delete"                                               # Drupal\DrupalExtension\Context\MinkContext::assertUrlRegExp()
          Current page "/clouds/aws_cloud/bdd_aws_ed246f8_ap_northeast_1/vpc/10" does not match the regex ""/delete"". (Behat\Mink\Exception\ExpectationException)
        β”‚
        β”‚  Screenshot at: sites/screenshots/030524-233035_AWS-ATDD-04-04-OperateCarrierGateways_96-FAIL.png
        β”‚
        └─ @AfterStep # Drupal\Tests\cloud\Behat\features\bootstrap\FeatureContext::takeScreenshotOnFailure()
        And I press "Delete"                                                             # Drupal\DrupalExtension\Context\MinkContext::pressButton()
        Then I should be on "/clouds/aws_cloud/bdd_aws_ed246f8_ap_northeast_1/vpc"       # Drupal\DrupalExtension\Context\MinkContext::assertPageAddress()
        And 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 click "Refresh"                                                            # Drupal\DrupalExtension\Context\MinkContext::assertClick()
        And I should not see the link "BDD_VPC_ed246f8_Operate"
    
πŸ› Bug report
Status

Fixed

Version

7.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024