sarjona

course/format/tests/behat/course_courseindex.feature

Oct 18th, 2021
954
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/course/format/tests/behat/course_courseindex.feature b/course/format/tests/behat/course_courseindex.feature
  2. index d656c32311a..91863b0b5d4 100644
  3. --- a/course/format/tests/behat/course_courseindex.feature
  4. +++ b/course/format/tests/behat/course_courseindex.feature
  5. @@ -16,23 +16,25 @@ Feature: Course index depending on role
  6.        | enablecompletion | 1        |
  7.        | numsections      | 4        |
  8.      And the following "activities" exist:
  9. -      | activity | name                                                                                                         | intro                       | course | idnumber | section |
  10. -      | assign   | <span lang="en" class="multilang">Activity</span><span lang="de" class="multilang">Aktivität</span> sample 1 | Test assignment description | C1     | sample1  | 1       |
  11. -      | book     | Activity sample 2                                                                                            | Test book description       | C1     | sample2  | 2       |
  12. -      | choice   | Activity sample 3                                                                                            | Test choice description     | C1     | sample3  | 3       |
  13. +      | activity | name                | intro                       | course | idnumber | section |
  14. +      | assign   | Activity sample 1   | Test assignment description | C1     | sample1  | 1       |
  15. +      | book     | Activity sample 2   | Test book description       | C1     | sample2  | 2       |
  16. +      | choice   | Activity sample 3   | Test choice description     | C1     | sample3  | 3       |
  17.      And the following "course enrolments" exist:
  18.        | user     | course | role           |
  19.        | student1 | C1     | student        |
  20.        | teacher1 | C1     | editingteacher |
  21. -    And the "multilang" filter is "on"
  22. -    And the "multilang" filter applies to "content and headings"
  23.  
  24.    @javascript
  25.    Scenario: Course index is present on course and activities.
  26. -    Given I am on the "C1" "Course" page logged in as "teacher1"
  27. +    Given the "multilang" filter is "on"
  28. +    And the "multilang" filter applies to "content and headings"
  29. +    And I am on the "C1" "Course" page logged in as "teacher1"
  30.      When I click on "Side panel" "button"
  31.      Then I should see "Open course index drawer"
  32. -    And I am on the "Activity sample 1" "assign activity" page
  33. +    And I am on the "Activity sample 1" "assign activity editing" page
  34. +    And I set the field "Assignment name" in the "General" "fieldset" to "<span lang=\"en\" class=\"multilang\">Activity</span><span lang=\"de\" class=\"multilang\">Aktivität</span> sample 1"
  35. +    And I press "Save and display"
  36.      And I should see "Open course index drawer"
  37.      And I click on "Open course index drawer" "button"
  38.      And I should see "Activity sample 1" in the "courseindex-content" "region"
RAW Paste Data