1 |
efrain |
1 |
@tool @tool_behat
|
|
|
2 |
Feature: Transform date time string arguments
|
|
|
3 |
In order to write tests with relative date and time
|
|
|
4 |
As a user
|
|
|
5 |
I need to apply some transformations to the steps arguments
|
|
|
6 |
|
|
|
7 |
Scenario: Set date in table and check date with specific format
|
|
|
8 |
Given I am on site homepage
|
|
|
9 |
And the following "users" exist:
|
|
|
10 |
| username | firstname | lastname |
|
|
|
11 |
| teacher1 | Teacher | 1 |
|
|
|
12 |
And the following "courses" exist:
|
|
|
13 |
| fullname | shortname | category |
|
|
|
14 |
| Course 1 | C1 | 0 |
|
|
|
15 |
And the following "activities" exist:
|
|
|
16 |
| activity | course | idnumber | name | intro | duedate |
|
|
|
17 |
| assign | C1 | assign1 | Test assignment name | Test assignment description | ##yesterday## |
|
|
|
18 |
And the following "course enrolments" exist:
|
|
|
19 |
| user | course | role |
|
|
|
20 |
| teacher1 | C1 | editingteacher |
|
|
|
21 |
And I log in as "teacher1"
|
|
|
22 |
And I am on "Course 1" course homepage
|
|
|
23 |
And I follow "Test assignment name"
|
|
|
24 |
And I should see "##yesterday##%d %B %Y##"
|
|
|
25 |
And I log out
|