forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'wip-mdl-55522' of https://github.com/rajeshtaneja/moodle
- Loading branch information
Showing
2 changed files
with
95 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@tool @tool_behat | ||
Feature: Transform date time string arguments | ||
In order to write tests with relative date and time | ||
As a user | ||
I need to apply some transformations to the steps arguments | ||
|
||
Scenario: Set date in table and check date with specific format | ||
Given I am on site homepage | ||
And the following "users" exist: | ||
| username | firstname | lastname | | ||
| teacher1 | Teacher | 1 | | ||
And the following "courses" exist: | ||
| fullname | shortname | category | | ||
| Course 1 | C1 | 0 | | ||
And the following "activities" exist: | ||
| activity | course | idnumber | name | intro | duedate | | ||
| assign | C1 | assign1 | Test assignment name | Test assignment description | ##yesterday## | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| teacher1 | C1 | editingteacher | | ||
And I log in as "teacher1" | ||
And I follow "Course 1" | ||
And I follow "Test assignment name" | ||
And I should see "##yesterday##l, j F Y##" | ||
And I log out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters