mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-57563 lang: Use the new newsitemsnumber wording in behat
This commit is contained in:
parent
442879042c
commit
1882e6ecac
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ Feature: Latest announcements block displays the course latest news
|
|||
And I create a course with:
|
||||
| Course full name | Course 1 |
|
||||
| Course short name | C1 |
|
||||
| News items to show | 5 |
|
||||
| Number of announcements | 5 |
|
||||
And I enrol "Teacher 1" user as "Teacher"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
|
@ -36,13 +36,13 @@ Feature: Latest announcements block displays the course latest news
|
|||
And I should see "Discussion Three" in the "Latest announcements" "block"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| News items to show | 2 |
|
||||
| Number of announcements | 2 |
|
||||
And I press "Save and display"
|
||||
And I should not see "Discussion One" in the "Latest announcements" "block"
|
||||
And I should see "Discussion Two" in the "Latest announcements" "block"
|
||||
And I should see "Discussion Three" in the "Latest announcements" "block"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| News items to show | 0 |
|
||||
| Number of announcements | 0 |
|
||||
And I press "Save and display"
|
||||
And "Latest announcements" "block" should not exist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue