From fd06fa3be1c6b0879644128e56397df2c477c1f0 Mon Sep 17 00:00:00 2001 From: Renaat Debleu Date: Mon, 19 Feb 2024 09:07:33 +0000 Subject: [PATCH] code review --- tests/behat/availability_relative_module.feature | 2 +- tests/behat/availability_relativedate.feature | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/behat/availability_relative_module.feature b/tests/behat/availability_relative_module.feature index e7852d9..7aedf02 100644 --- a/tests/behat/availability_relative_module.feature +++ b/tests/behat/availability_relative_module.feature @@ -140,7 +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 am on "Course 1" course homepage with editing mode on 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 dca0d24..6d6f2fb 100644 --- a/tests/behat/availability_relativedate.feature +++ b/tests/behat/availability_relativedate.feature @@ -91,6 +91,7 @@ Feature: availability_relativedate And I set the field "relativestart" to "1" And I press "Save changes" + And I am on "Course 1" course homepage with editing mode on And I edit the section "2" When I expand all fieldsets Then I should see "5" in the "Restrict access" "fieldset" @@ -99,6 +100,7 @@ Feature: availability_relativedate And I press "Cancel" # 5 days after course end date. + And I am on "Course 1" course homepage with editing mode on And I edit the section "3" When I expand all fieldsets Then I should see "None" in the "Restrict access" "fieldset" @@ -109,6 +111,7 @@ Feature: availability_relativedate And I set the field "relativestart" to "2" And I press "Save changes" + And I am on "Course 1" course homepage And I should see "PageA" in the "region-main" "region" And I should see "2 hours after course start date" in the "region-main" "region" And I should see "4 days before course end date" in the "region-main" "region"