Parcourir la source

Merge pull request #1259 from jloguercio/1.11.x

Added Behat Test to Teachers time reports
José Loguercio il y a 8 ans
Parent
commit
8426c39033
1 fichiers modifiés avec 22 ajouts et 2 suppressions
  1. 22 2
      tests/features/accessCompanyReports.feature

+ 22 - 2
tests/features/accessCompanyReports.feature

@@ -1,8 +1,8 @@
 @administration
 @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
   In order to analyse reports of time spent on the platform
   As an administrator
   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
   Scenario: See the company reports link on the admin page
     Given I am a platform administrator
     Given I am a platform administrator
@@ -18,3 +18,23 @@ Feature: Access to company reports as admin
     Given I am a platform administrator
     Given I am a platform administrator
     And I am on "/main/admin/company_reports_resumed.php"
     And I am on "/main/admin/company_reports_resumed.php"
     Then I should not see "not authorized"
     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"