From e6cd510ea656f3705e1f8eb9c0301b13855e5a16 Mon Sep 17 00:00:00 2001 From: Renaat Debleu Date: Fri, 16 Feb 2024 09:04:40 +0000 Subject: [PATCH] main_fix --- tests/behat/availability_relative_module.feature | 1 + tests/behat/availability_relativedate.feature | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/behat/availability_relative_module.feature b/tests/behat/availability_relative_module.feature index 9232daa..e7852d9 100644 --- a/tests/behat/availability_relative_module.feature +++ b/tests/behat/availability_relative_module.feature @@ -140,6 +140,7 @@ Feature: availability_relativedate relative activities And I set the field "relativestart" to "7" And I set the field "relativecoursemodule" to "Page A1" And I press "Save changes" + And I change window size to "large" And I delete "Page A1" activity And I reload the page And I run all adhoc tasks diff --git a/tests/behat/availability_relativedate.feature b/tests/behat/availability_relativedate.feature index 1741dbf..0abe1bc 100644 --- a/tests/behat/availability_relativedate.feature +++ b/tests/behat/availability_relativedate.feature @@ -36,8 +36,8 @@ Feature: availability_relativedate Scenario: Test relative conditions Given I add a page activity to course "Course 1" section "1" - And I set the field "Name" to "Page 1: 2 hours after course start date" And I expand all fieldsets + And I set the field "Name" to "Page 1: 2 hours after course start date" And I click on "Add restriction..." "button" And I click on "Relative date" "button" in the "Add restriction..." "dialogue" And I set the field "relativenumber" to "2" @@ -46,8 +46,8 @@ Feature: availability_relativedate And I press "Save and return to course" And I add a page activity to course "Course 1" section "1" - And I set the field "Name" to "Page 2: 4 days before course end date" And I expand all fieldsets + And I set the field "Name" to "Page 2: 4 days before course end date" And I click on "Add restriction..." "button" And I click on "Relative date" "button" in the "Add restriction..." "dialogue" And I set the field "relativenumber" to "4" @@ -56,8 +56,8 @@ Feature: availability_relativedate And I press "Save and return to course" And I add a page activity to course "Course 1" section "1" - And I set the field "Name" to "Page 3: 6 weeks after user enrolment date" And I expand all fieldsets + And I set the field "Name" to "Page 3: 6 weeks after user enrolment date" And I click on "Add restriction..." "button" And I click on "Relative date" "button" in the "Add restriction..." "dialogue" And I set the field "relativenumber" to "6" @@ -66,16 +66,15 @@ Feature: availability_relativedate And I press "Save and return to course" And I add a page activity to course "Course 1" section "1" - And I set the field "Name" to "Page 4: 7 months after enrolment method end date" And I expand all fieldsets + And I set the field "Name" to "Page 4: 7 months after enrolment method end date" And I click on "Add restriction..." "button" And I click on "Relative date" "button" in the "Add restriction..." "dialogue" And I set the field "relativenumber" to "7" And I set the field "relativednw" to "4" And I set the field "relativestart" to "4" And I press "Save and return to course" -Then I should see "boe" - + # 5 days before course start date. And I edit the section "2" When I expand all fieldsets