Use correct link to show all sessions in behat test.
authorDan Marsden <dan@danmarsden.com>
Wed, 14 Jun 2017 01:06:07 +0000 (13:06 +1200)
committerDan Marsden <dan@danmarsden.com>
Wed, 14 Jun 2017 01:06:07 +0000 (13:06 +1200)
tests/behat/report.feature

index 949e09e..2a5bc70 100644 (file)
@@ -228,9 +228,9 @@ Feature: Visiting reports
         When I log in as "student1"
          And I follow "Course 1"
          And I follow "Attendance"
-         And I follow "All"
+         And I click on "All" "link" in the ".attfiltercontrols" "css_element"
 
-        Then "2" "text" should exist in the "Taken sessions" "table_row"
+      Then "2" "text" should exist in the "Taken sessions" "table_row"
          And "3 / 4" "text" should exist in the "Points over taken sessions:" "table_row"
          And "75.0%" "text" should exist in the "Percentage over taken sessions:" "table_row"
          And "3" "text" should exist in the "Total number of sessions:" "table_row"