[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @core @core_course 2 Feature: Course paged mode 3 In order to split the course in parts 4 As a teacher 5 I need to display the course in a paged mode and navigate through the different sections 6 7 @javascript @_cross_browser 8 Scenario Outline: Weekly and topics course formats with Javascript enabled 9 Given the following "courses" exist: 10 | fullname | shortname | category | format | coursedisplay | numsections | 11 | Course 1 | C1 | 0 | <courseformat> | 1 | 3 | 12 And I log in as "admin" 13 And I follow "Course 1" 14 Then I click on <section2> "link" in the "#section-2" "css_element" 15 And I follow "C1" 16 And I click on <section3> "link" in the "#section-3" "css_element" 17 And I follow "C1" 18 And I click on <section1> "link" in the "#section-1" "css_element" 19 And I should see <section1> in the "div.single-section" "css_element" 20 And I should see <section2> in the ".single-section span.mdl-right" "css_element" 21 And I should not see <prevunexistingsection> in the ".single-section" "css_element" 22 And I click on <section2> "link" in the ".single-section" "css_element" 23 And I should see <section2> in the "div.single-section" "css_element" 24 And I should see <section1> in the ".single-section span.mdl-left" "css_element" 25 And I should see <section3> in the ".single-section span.mdl-right" "css_element" 26 And I click on <section1> "link" in the ".single-section" "css_element" 27 And I should see <section1> in the "div.single-section" "css_element" 28 And I click on <section2> "link" in the ".single-section" "css_element" 29 And I click on <section3> "link" in the ".single-section" "css_element" 30 And I should see <section3> in the "div.single-section" "css_element" 31 And I should see <section2> in the ".single-section span.mdl-left" "css_element" 32 And I should not see <section1> in the ".single-section .section-navigation" "css_element" 33 And I should not see <prevunexistingsection> in the ".single-section" "css_element" 34 And I should not see <nextunexistingsection> in the ".single-section" "css_element" 35 36 Examples: 37 | courseformat | section1 | section2 | section3 | prevunexistingsection | nextunexistingsection | 38 | topics | "Topic 1" | "Topic 2" | "Topic 3" | "Topic 0" | "Topic 4" | 39 | weeks | "1 January - 7 January" | "8 January - 14 January" | "15 January - 21 January" | "25 December - 31 December" | "22 January - 28 January" | 40 41 Scenario Outline: Weekly and topics course formats with Javascript disabled 42 Given the following "courses" exist: 43 | fullname | shortname | category | format | coursedisplay | numsections | 44 | Course 1 | C1 | 0 | <courseformat> | 1 | 3 | 45 And I log in as "admin" 46 And I follow "Course 1" 47 Then I click on <section2> "link" in the "#section-2" "css_element" 48 And I follow "C1" 49 And I click on <section3> "link" in the "#section-3" "css_element" 50 And I follow "C1" 51 And I click on <section1> "link" in the "#section-1" "css_element" 52 And I should see <section1> in the "div.single-section" "css_element" 53 And I should see <section2> in the ".single-section span.mdl-right" "css_element" 54 And I should not see <prevunexistingsection> in the ".single-section" "css_element" 55 And I click on <section2> "link" in the ".single-section" "css_element" 56 And I should see <section2> in the "div.single-section" "css_element" 57 And I should see <section1> in the ".single-section span.mdl-left" "css_element" 58 And I should see <section3> in the ".single-section span.mdl-right" "css_element" 59 And I click on <section1> "link" in the ".single-section" "css_element" 60 And I should see <section1> in the "div.single-section" "css_element" 61 And I click on <section2> "link" in the ".single-section" "css_element" 62 And I click on <section3> "link" in the ".single-section" "css_element" 63 And I should see <section3> in the "div.single-section" "css_element" 64 And I should see <section2> in the ".single-section span.mdl-left" "css_element" 65 And I should not see <section1> in the ".single-section .section-navigation" "css_element" 66 And I should not see <prevunexistingsection> in the ".single-section" "css_element" 67 And I should not see <nextunexistingsection> in the ".single-section" "css_element" 68 69 Examples: 70 | courseformat | section1 | section2 | section3 | prevunexistingsection | nextunexistingsection | 71 | topics | "Topic 1" | "Topic 2" | "Topic 3" | "Topic 0" | "Topic 4" | 72 | weeks | "1 January - 7 January" | "8 January - 14 January" | "15 January - 21 January" | "25 December - 31 December" | "22 January - 28 January" |
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |