X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/tests/behat
home
/
cbholdings
/
pasukulu
/
lib
/
tests
/
behat
/
📁
..
📄
action_menu.feature
(1.11 KB)
📄
action_modal.feature
(2.06 KB)
📄
alpha_chooser.feature
(21.59 KB)
📄
behat_accessibility.php
(7.72 KB)
📄
behat_action_menu.php
(8.14 KB)
📄
behat_data_generators.php
(9.71 KB)
📄
behat_deprecated.php
(2.1 KB)
📄
behat_filters.php
(2.95 KB)
📄
behat_forms.php
(32.45 KB)
📄
behat_general.php
(97.03 KB)
📄
behat_hooks.php
(33.02 KB)
📄
behat_moodlenet.php
(2.03 KB)
📄
behat_navigation.php
(61.41 KB)
📄
behat_permissions.php
(12.62 KB)
📄
behat_transformations.php
(5.56 KB)
📄
datetime_any.feature
(4.24 KB)
📄
enabledashboard.feature
(846 B)
📄
expand_single_fieldset.feature
(697 B)
📄
largeforms.feature
(2.67 KB)
📄
locking.feature
(8.55 KB)
📄
min_max_version.feature
(1018 B)
📄
moodlenet_outbound.feature
(3.98 KB)
📄
permissionmanager.feature
(3.62 KB)
📄
readonlyform.feature
(1.7 KB)
📄
securelayout.feature
(1.68 KB)
📄
showuseridentity.feature
(4.26 KB)
📄
switch_editing_mode.feature
(2.72 KB)
📄
timezone.feature
(431 B)
📄
userfeedback.feature
(2.18 KB)
Editing: datetime_any.feature
@core @javascript @core_form Feature: Any day / month / year combination in date form elements works ok. In order to use date / datetime elements with Behat as a user Any day / month / year combination must work ok @javascript Scenario Outline: Verify that setting any date / datetime is possible with enabled fields Given the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | And the following "activity" exist: | activity | name | intro | course | idnumber | | assign | Assignment 01 | Assign activity to test some dates | C1 | assign01 | And I am on the "Assignment 01" "assign activity editing" page logged in as admin And I expand all fieldsets And I set the field "Due date" to "<initial_date>" And I set the field "Due date" to "<final_date>" When I press "Save and display" Then the activity date in "Assignment 01" should contain "Due:" And the activity date in "Assignment 01" should contain "<date_result>" Examples: | initial_date | final_date | date_result | case_explanation (times Australia/Perth) | | ##today## | ##tomorrow noon## | ##tomorrow noon##%A, %d %B %Y, %I:%M## | change of day, any day, back and forth | | ##tomorrow## | ##today noon## | ##today noon##%A, %d %B %Y, %I:%M## | | | 1617256800 | 1617170400 | Wednesday, 31 March 2021, 2:00 | change of month, back and forth | | 1617170400 | 1617256800 | Thursday, 1 April 2021, 2:00 | | | 1740808800 | 1709186400 | Thursday, 29 February 2024, 2:00 | change of month, leap year, back and forth | | 1709186400 | 1740808800 | Saturday, 1 March 2025, 2:00 | | | 1577858400 | 1577772000 | Tuesday, 31 December 2019, 2:00 | change of year, back and forth | | 1577772000 | 1577858400 | Wednesday, 1 January 2020, 2:00 | | @javascript Scenario Outline: Verify that setting any date / datetime is possible with disabled fields Given the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | And the following "activity" exist: | activity | name | intro | course | idnumber | | assign | Assignment 01 | Assign activity to test some dates | C1 | assign01 | And I am on the "Assignment 01" "assign activity editing" page logged in as admin And I expand all fieldsets And I set the field "Due date" to "<initial_date>" And I set the field "Due date" to "disabled" And I set the field "Due date" to "<final_date>" When I press "Save and display" Then the activity date in "Assignment 01" should contain "Due:" And the activity date in "Assignment 01" should contain "<date_result>" Examples: | initial_date | final_date | date_result | case_explanation (times Australia/Perth) | | ##today## | ##tomorrow noon## | ##tomorrow noon##%A, %d %B %Y, %I:%M## | change of day, any day, back and forth | | ##tomorrow## | ##today noon## | ##today noon##%A, %d %B %Y, %I:%M## | | | 1617256800 | 1617170400 | Wednesday, 31 March 2021, 2:00 | change of month, back and forth | | 1617170400 | 1617256800 | Thursday, 1 April 2021, 2:00 | | | 1740808800 | 1709186400 | Thursday, 29 February 2024, 2:00 | change of month, leap year, back and forth | | 1709186400 | 1740808800 | Saturday, 1 March 2025, 2:00 | | | 1577858400 | 1577772000 | Tuesday, 31 December 2019, 2:00 | change of year, back and forth | | 1577772000 | 1577858400 | Wednesday, 1 January 2020, 2:00 | |
Upload File
Create Folder