mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 23:42:11 +02:00
MDL-49412 behat: Updates to course behat tests.
Part of MDL-45774
This commit is contained in:
parent
f5da794c25
commit
c699310c40
@ -11,7 +11,7 @@ Feature: Edit completion settings of an activity
|
||||
And the following config values are set as admin:
|
||||
| enablecompletion | 1 |
|
||||
And I log in as "admin"
|
||||
And I am on homepage
|
||||
And I am on site homepage
|
||||
And I follow "Course 1"
|
||||
And I turn editing mode on
|
||||
And I add a "Page" to section "1" and I fill the form with:
|
||||
|
@ -17,6 +17,7 @@ Feature: Add activities to courses
|
||||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I follow "Course 1"
|
||||
And I turn editing mode on
|
||||
|
||||
|
@ -29,7 +29,7 @@ Feature: Front page displays items in different modes
|
||||
When I set the following administration settings values:
|
||||
| Front page items when logged in | List of categories |
|
||||
| Maximum category depth | 2 |
|
||||
And I am on homepage
|
||||
And I am on site homepage
|
||||
Then I should see "Category 1" in the "region-main" "region"
|
||||
And I should see "Category 1 child" in the "region-main" "region"
|
||||
And I should not see "Category 1 child child" in the "region-main" "region"
|
||||
@ -45,7 +45,7 @@ Feature: Front page displays items in different modes
|
||||
When I set the following administration settings values:
|
||||
| Front page items when logged in | Combo list |
|
||||
| Maximum category depth | 2 |
|
||||
And I am on homepage
|
||||
And I am on site homepage
|
||||
Then I should see "Category 1" in the "region-main" "region"
|
||||
And I should see "Category 1 child" in the "region-main" "region"
|
||||
And I should not see "Category 1 child child" in the "region-main" "region"
|
||||
|
@ -10,6 +10,7 @@ Feature: Course paged mode
|
||||
| fullname | shortname | category | format | coursedisplay | numsections |
|
||||
| Course 1 | C1 | 0 | <courseformat> | 1 | 3 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I follow "Course 1"
|
||||
Then I click on <section2> "link" in the <section2> "section"
|
||||
And I follow "C1"
|
||||
@ -43,6 +44,7 @@ Feature: Course paged mode
|
||||
| fullname | shortname | category | format | coursedisplay | numsections |
|
||||
| Course 1 | C1 | 0 | <courseformat> | 1 | 3 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I follow "Course 1"
|
||||
Then I click on <section2> "link" in the <section2> "section"
|
||||
And I follow "C1"
|
||||
|
@ -34,7 +34,7 @@ Feature: Restrict activities availability
|
||||
Given I log in as "admin"
|
||||
And I set the following system permissions of "Teacher" role:
|
||||
| mod/chat:addinstance | Prohibit |
|
||||
And I am on homepage
|
||||
And I am on site homepage
|
||||
And I follow "Course 1"
|
||||
And I expand "Users" node
|
||||
And I follow "Permissions"
|
||||
|
Loading…
x
Reference in New Issue
Block a user