Browse Source

Tests: Add test cases for corporate report access

Yannick Warnier 10 years ago
parent
commit
445916af25
1 changed files with 20 additions and 0 deletions
  1. 20 0
      tests/features/accessCompanyReports.feature

+ 20 - 0
tests/features/accessCompanyReports.feature

@@ -0,0 +1,20 @@
+@administration
+Feature: Access to company reports as admin
+  In order to analyse reports of time spent on the platform
+  As an administrator
+  I need to be able to access the company reports
+
+  Scenario: See the company reports link on the admin page
+    Given I am a platform administrator
+    And I am on "/main/admin/index.php"
+    Then I should see "Reports"
+
+  Scenario: Access the company report
+    Given I am a platform administrator
+    And I am on "/main/mySpace/company_reports.php"
+    Then I should not see "not authorized"
+
+  Scenario: Access the resumed version of the company report
+    Given I am a platform administrator
+    And I am on "/main/admin/company_reports_resumed.php"
+    Then I should not see "not authorized"