Skip to content
Snippets Groups Projects
Commit 107f4eff authored by Yutong Li's avatar Yutong Li Committed by Yas Naoi
Browse files

Issue #3226130 by yutong.li, yas, kumikoono: Add a BDD test suite for Cloud...

Issue #3226130 by yutong.li, yas, kumikoono: Add a BDD test suite for Cloud service providers menu (1) (All -> Cloud service providers)
parent 481c5846
No related branches found
No related tags found
No related merge requests found
......@@ -49,5 +49,3 @@ default:
error_message_selector: '.messages.messages--error'
success_message_selector: '.messages.messages--status'
warning_message_selector: '.messages.messages--warning'
<?php
use Drupal\DrupalExtension\Context\RawDrupalContext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Behat\Behat\Tester\Exception\PendingException;
/**
* Defines application features from the specific context.
......
Feature: List all Cloud service providers
In order to view the list of Cloud service providers
As a user
I need to be have both Drupal and AWS IAM permissions
@api
Scenario Outline: View the list of Cloud service providers
Given I am logged in as a user with the <role> role
When I go to "/clouds"
Then I should get a <code> HTTP response
And I should see the heading <heading>
Examples:
| role | code | heading |
| "Authenticated user" | 403 | "Access denied" |
| "Administrator" | 200 | "Cloud Service Providers" |
@api
Scenario: "Administrator" can view the list of Cloud service providers
Given I am logged in as a user with the "Administrator" role
When I go to "/clouds"
Then I should see "Location Map"
And I should see the button "Apply"
And I should see the link "Name"
And I should see the link "view"
And I should see "Instance Pricing"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment