From 32f78bfa4932b0d05ee2cd5d3d40da809d80ea86 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 4 Jun 2024 08:13:27 +0200 Subject: [PATCH] MOBILE-4470 behat: Fix calendar tests They were failing because behat transformations uses 'June' for %b, while the app uses 'Jun' for abbreviated months --- src/addons/calendar/tests/behat/create_events.feature | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/addons/calendar/tests/behat/create_events.feature b/src/addons/calendar/tests/behat/create_events.feature index 8a334d941e3..e182ba6c0cb 100755 --- a/src/addons/calendar/tests/behat/create_events.feature +++ b/src/addons/calendar/tests/behat/create_events.feature @@ -26,9 +26,8 @@ Feature: Test creation of calendar events in app When I press "More" in the app And I press "Calendar" in the app And I press "New event" in the app - Then I should find "## now ##%b %e, %Y##" in the app # Flaky step, sometimes it fails due to minute change when checking. - And I should find "## now ##%l:%M %p##" in the app + Then the field "Date" matches value "## now ##%Y-%m-%dT%H:%M##" in the app And I should not be able to press "Save" in the app # Check that student can only create User events.