cirandas.net

ref: master

features/export_users.feature


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Feature: export users
  As an administrator
  I want to export user from my environment

  Background:
    Given the following user
      | login |
      | ultraje |

  Scenario: Export users as XML
    Given I am logged in as admin
    When I go to /admin/users
    And I follow "[XML]"
    Then I should see "ultraje"

  Scenario: Export users as CSV
    Given I am logged in as admin
    When I go to /admin/users
    And I follow "[CSV]"
    Then I should see "name;email"
    And I should see "ultraje"

  Scenario: Cant access as normal user
    Given I am logged in as "ultraje"
    When I go to /admin/users
    Then I should see "Access denied"