Skip to content

Commit

Permalink
MOBILE-4470 behat: Fix calendar tests
Browse files Browse the repository at this point in the history
They were failing because behat transformations uses 'June' for %b, while the app uses 'Jun' for abbreviated months
  • Loading branch information
dpalou committed Jun 4, 2024
1 parent 188808d commit 32f78bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/addons/calendar/tests/behat/create_events.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 32f78bf

Please sign in to comment.