user_applications.feature 982 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
@javascript @mobile
Feature: managing authorized applications
  Background:
    Given following users exist:
      | username    | email                 |
      | Augier      | augier@example.org    |
    And a client with a provided picture exists for user "augier@example.org"
    And a client exists for user "augier@example.org"

  Scenario: displaying authorizations
    When I sign in as "augier@example.org" on the mobile website
    And I go to the user applications page
    Then I should see 2 authorized applications
    And I should see 1 authorized applications with no provided image
    And I should see 1 authorized applications with an image

  Scenario: revoke an authorization
    When I sign in as "augier@example.org" on the mobile website
    And I go to the user applications page
    And I revoke the first authorization
    Then I should see 1 authorized applications
    And I revoke the first authorization
    Then I should see 0 authorized applications