Commit 57266a6a authored by Tamaki Fujino's avatar Tamaki Fujino Committed by Yas Naoi
Browse files

Issue #3309587 by TamakiFujino, kumikoono, yas: Add a BDD test scenario for...

Issue #3309587 by TamakiFujino, kumikoono, yas: Add a BDD test scenario for viewing AWS Cloud volumes
parent 7f3bfe5d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -27,6 +27,8 @@ default:
        # Elastic IP view form
        Domain: '.field--name-domain'
        Network border group: '.field--name-network-border-group'
        Instance ID: '.field--name-instance-id'
        Instance ID: '.field--name-instance-id,.field--name-attachment-information'
        # Volume view form
        Size: '.field--name-size'
        # Internet gateway view form
        Internet gateway name: '.field--name-tags'
+22 −4
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
Feature: Create and delete a volume as "Authenticated User"

  @api
  Scenario: Create a Volume
  Scenario: Create a volume
    Given I am logged in as user "{{ user_name }}"
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume/add"
    And I should see the heading "Add AWS Cloud volume"
@@ -16,7 +16,7 @@ Feature: Create and delete a volume as "Authenticated User"
    And I should see "creating" in the "{{ volume_name }}" row

  @api
  Scenario: Attach the Volume
  Scenario: Attach the volume
    Given I am logged in as user "{{ user_name }}"
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume"
    And I should see the heading "AWS Cloud volumes"
@@ -37,7 +37,25 @@ Feature: Create and delete a volume as "Authenticated User"
    And I should see "attaching" in the "{{ volume_name }}" row

  @api
  Scenario: Detach the Volume
  Scenario: View the volume
    Given I am logged in as user "{{ user_name }}"
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume"
    And I click "Refresh"
    And I should see the heading "AWS Cloud volumes"
    And I should see "{{ volume_name }}" in the table
    And I wait {{ wait }} milliseconds
    And I click "{{ volume_name }}"
    Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/volume/"
    And I should see "{{ volume_name }}" in the "page_header"
    And I should see "{{ volume_size }}" in the "Size"
    And I should see "{{ availability_zone }}" in the "Availability Zone"
    And I should see "{{ instance_name }}" in the "Instance ID"
    # And I should see "{{ device_name }} in the "Device Name"
    And I should see "{{ user_name }}" in the "Authored by"
    And I should see neither error nor warning messages

  @api
  Scenario: Detach the volume
    Given I am logged in as user "{{ user_name }}"
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume"
    And I should see the heading "AWS Cloud volumes"
@@ -56,7 +74,7 @@ Feature: Create and delete a volume as "Authenticated User"
    And I should see "detaching" in the "{{ volume_name }}" row

  @api
  Scenario: Delete the Volume
  Scenario: Delete the volume
    Given I am logged in as user "{{ user_name }}"
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume"
    And I click "Refresh"