1441 |
ariadna |
1 |
@sms
|
|
|
2 |
Feature: Access the SMS gateways page
|
|
|
3 |
In order to maintain SMS functionality
|
|
|
4 |
As an admin
|
|
|
5 |
I need to be able to view and manage SMS gateways
|
|
|
6 |
|
|
|
7 |
Background: Manage the SMS gateways
|
|
|
8 |
Given the following "core_sms > sms_gateways" exist:
|
|
|
9 |
| name | classname | enabled | config |
|
|
|
10 |
| Default | smsgateway_aws\gateway | 1 | {"countrycode":"8802","gateway":"aws_sns"} |
|
|
|
11 |
| Europe | smsgateway_aws\gateway | 1 | {"countrycode":"+61","gateway":"aws_sns"} |
|
|
|
12 |
|
|
|
13 |
@javascript
|
|
|
14 |
Scenario: An admin can manage the SMS gateways in the gateway management page
|
|
|
15 |
Given I log in as "admin"
|
|
|
16 |
And I navigate to "Plugins > SMS > Manage SMS gateways" in site administration
|
|
|
17 |
And I should see "SMS gateways"
|
|
|
18 |
And I should see "Create new SMS gateway"
|
|
|
19 |
And I should see "Default" in the "sms_gateways_table" "table"
|
|
|
20 |
And I should see "Europe" in the "sms_gateways_table" "table"
|
|
|
21 |
And I should see "Europe" in the "sms_gateways_table" "table"
|
|
|
22 |
And I should see "Disable Default" in the "Default" "table_row"
|
|
|
23 |
And I should see "Disable Europe" in the "Europe" "table_row"
|
|
|
24 |
When I toggle the "Disable Default" admin switch "off"
|
|
|
25 |
Then I should see "Default disabled"
|
|
|
26 |
And I should see "Enable Default" in the "Default" "table_row"
|
|
|
27 |
And I should see "Edit" in the "Default" "table_row"
|
|
|
28 |
And I should see "Delete" in the "Default" "table_row"
|
|
|
29 |
And I click on "Delete" "link" in the "Default" "table_row"
|
|
|
30 |
And I should see "This will delete the Default SMS gateway."
|
|
|
31 |
And I click on "Delete" "button"
|
|
|
32 |
And I should see "Default SMS gateway deleted"
|
|
|
33 |
And I should not see "Default" in the "sms_gateways_table" "table"
|