Skip to content
Snippets Groups Projects

Issue #3409375 by sekinet: Add a BDD test step to take a screenshot to come up...

@@ -33,6 +33,7 @@ Feature: Create, read, update, and delete a user for OpenStack as an "administra
Scenario: Create a user
Given I am logged in as a user with the "Administrator" role
When I visit "/{{ root_path }}/openstack/{{ cloud_context }}/user/add"
And I take screenshot
And I should see the heading "{{ prefix_add_form }} user"
And I enter "{{ user_name_operate }}" for "Name"
And I enter "{{ description }}" for "Description"
@@ -53,11 +54,13 @@ Feature: Create, read, update, and delete a user for OpenStack as an "administra
Given I am logged in as <role>
When I visit "/{{ root_path }}/openstack/{{ cloud_context }}/user"
And I wait {{ wait_render }} milliseconds
And I take screenshot
And I should see the link "{{ user_name_operate }}"
And I wait {{ wait }} milliseconds
And I click "{{ user_name_operate }}"
And I wait {{ wait_render }} milliseconds
Then the url should match "/{{ root_path }}/openstack/{{ cloud_context }}/user/"
And I take screenshot
And I should see "{{ user_name_operate }}" in the "page_header"
And I should see "{{ user_name_operate }}" in the "Name"
And I should see "{{ description }}" in the "Description"
@@ -100,6 +103,7 @@ Feature: Create, read, update, and delete a user for OpenStack as an "administra
Then the url should match "/{{ root_path }}/openstack/{{ cloud_context }}/user/"
And I click "Change Password" in the actions
And the url should match "/change_password"
And I take screenshot
And I should see "Change password" in the "page_header"
And I enter "{{ user_password_operate_updated }}" for "Password"
And I enter "{{ user_password_operate_updated }}" for "Confirm password"
@@ -123,6 +127,7 @@ Feature: Create, read, update, and delete a user for OpenStack as an "administra
Then the url should match "/{{ root_path }}/openstack/{{ cloud_context }}/user/"
And I click "Edit" in the actions
And the url should match "/edit"
And I take screenshot
And I enter "{{ user_name_operate_updated }}" for "Name"
And I enter "{{ description_updated }}" for "Description"
And I press "Save"
@@ -146,6 +151,7 @@ Feature: Create, read, update, and delete a user for OpenStack as an "administra
And the url should match "/{{ root_path }}/openstack/{{ cloud_context }}/user/"
And I click "Delete" in the actions
Then the url should match "/delete"
And I take screenshot
And I press "Delete"
And I wait {{ wait_render }} milliseconds
Then I should be on "/{{ root_path }}/openstack/{{ cloud_context }}/user"
Loading