From 445916af2552f8c61b49b438582e4e242ac3fd56 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 27 Mar 2015 14:50:19 -0500 Subject: [PATCH] Tests: Add test cases for corporate report access --- tests/features/accessCompanyReports.feature | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/features/accessCompanyReports.feature diff --git a/tests/features/accessCompanyReports.feature b/tests/features/accessCompanyReports.feature new file mode 100644 index 0000000000..df676fbfbb --- /dev/null +++ b/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"