From 1e3468512d335408c1cd3b3f3c2fed42f1554b80 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Tue, 30 Jul 2024 11:17:35 +0200 Subject: [PATCH] Upgrade: Fix a Behat test which broke von Moodle 4.1 --- CHANGES.md | 1 + tests/behat/tool_selfsignuphardlifecycle.feature | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index d32eac1..cfd05d6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes ### Unreleased +* 2024-07-28 - Upgrade: Fix a Behat test which broke von Moodle 4.1. * 2024-07-28 - Cleanup: Replace deprecated strftime() function with \core_date::strftime() function. * 2024-07-28 - Prepare compatibility for Moodle 4.1. diff --git a/tests/behat/tool_selfsignuphardlifecycle.feature b/tests/behat/tool_selfsignuphardlifecycle.feature index 83e8cfb..da1afbb 100644 --- a/tests/behat/tool_selfsignuphardlifecycle.feature +++ b/tests/behat/tool_selfsignuphardlifecycle.feature @@ -163,7 +163,8 @@ Feature: The hard life cycle for self-signup users tool allows admins to get rid | user4 | User | 4 | user4@example.com | email | 1 | ## 201 days ago ## | And I log in as "admin" And I navigate to "Users > Accounts > User profile fields" in site administration - And I set the field "datatype" to "Date/Time" + And I click on "Create a new profile field" "link" + And I click on "Date/Time" "link" And I set the following fields to these values: | Short name (must be unique) | deletionoverride | | Name | Deletion day | @@ -172,7 +173,8 @@ Feature: The hard life cycle for self-signup users tool allows admins to get rid | End year | 2050 | | Include time? | 0 | And I click on "Save changes" "button" - And I set the field "datatype" to "Date/Time" + And I click on "Create a new profile field" "link" + And I click on "Date/Time" "link" And I set the following fields to these values: | Short name (must be unique) | suspensionoverride | | Name | Suspension day |