Browse Source

Merge pull request #1259 from jloguercio/1.11.x

Added Behat Test to Teachers time reports
José Loguercio 8 years ago
parent
commit
8426c39033
1 changed files with 22 additions and 2 deletions
  1. 22 2
      tests/features/accessCompanyReports.feature

+ 22 - 2
tests/features/accessCompanyReports.feature

@@ -1,8 +1,8 @@
 @administration
-Feature: Access to company reports as admin
+Feature: Access to portal 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
+  I need to be able to access the portal reports
 
   Scenario: See the company reports link on the admin page
     Given I am a platform administrator
@@ -18,3 +18,23 @@ Feature: Access to company reports as admin
     Given I am a platform administrator
     And I am on "/main/admin/company_reports_resumed.php"
     Then I should not see "not authorized"
+
+  Scenario: See the company reports link on the admin page
+    Given I am a platform administrator
+    And I am on "/main/admin/teacher_time_report.php"
+    Then I should see "Teachers time report"
+
+  Scenario: See the company reports link on the admin page
+    Given I am a platform administrator
+    And I am on "/main/admin/teacher_time_report.php"
+    Then I should not see "not authorized"
+
+  Scenario: See the company reports link on the admin page
+    Given I am a platform administrator
+    And I am on "/main/admin/teachers_time_by_session_report.php"
+    Then I should see "Teachers time report by session"
+
+  Scenario: See the company reports link on the admin page
+    Given I am a platform administrator
+    And I am on "/main/admin/teachers_time_by_session_report.php"
+    Then I should not see "not authorized"