MDL-73859 behat: Fix random error highlighting week

The first week is only highlighted if course starts today or
later. So, the course will be created with startdate on
yesterday to guarantee it always passes.
This commit is contained in:
Sara Arjona 2022-02-15 11:21:39 +01:00
parent d24a4ab56f
commit 9096a1e1ac

View File

@ -7,7 +7,7 @@ Feature: The current week should be highlighted in the course.
Scenario: Highlight first week
Given the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections | startdate |
| Course 1 | C1 | weeks | 0 | 5 | ##today## |
| Course 1 | C1 | weeks | 0 | 5 | ##yesterday## |
When I am on the "C1" "Course" page logged in as "admin"
Then I should see "This week" in the "#section-1" "css_element"