manage_tokens.feature 902 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
@core @core_admin
Feature: Manage tokens
  In order to manage webservice usage
  As an admin
  I need to be able to create and delete tokens

  Background:
    Given the following "users" exist:
    | username  | password  | firstname | lastname |
    | testuser  | testuser  | Joe | Bloggs |
    | testuser2 | testuser2 | TestFirstname | TestLastname |
12
    And I change window size to "small"
13
14
15
16
17
    And I log in as "admin"
    And I am on site homepage

  @javascript
  Scenario: Add & delete a token
18
    Given I navigate to "Server > Web services > Manage tokens" in site administration
19
20
21
22
23
24
25
26
27
    And I follow "Add"
    And I set the field "User" to "Joe Bloggs"
    And I set the field "IP restriction" to "127.0.0.1"
    When I press "Save changes"
    Then I should see "Joe Bloggs"
    And I should see "127.0.0.1"
    And I follow "Delete"
    And I press "Delete"
    And I should not see "Joe Bloggs"