From 537bd2ba10864a398de1f357f168b804585b7db2 Mon Sep 17 00:00:00 2001 From: Koval <85495223+Kovalskiy266@users.noreply.github.com> Date: Tue, 29 Aug 2023 17:29:06 +0300 Subject: [PATCH] PROD-22452: Add scenario in filter community events behat test for different timezones --- .../event/filter-community-events.feature | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/behat/features/capabilities/event/filter-community-events.feature b/tests/behat/features/capabilities/event/filter-community-events.feature index e543746a106..d29a2a4e452 100644 --- a/tests/behat/features/capabilities/event/filter-community-events.feature +++ b/tests/behat/features/capabilities/event/filter-community-events.feature @@ -4,6 +4,28 @@ Feature: Filter community events Role: As a Verified Goal/desire: I want to filter events that have all day checkbox activated + Scenario: Successfully use filters for ongoing and upcoming events with today's end date for different timezones + Given users: + | name | status | timezone | roles | + | regular user | 1 | UTC | verified | + | Australian user | 1 | Australia/Victoria | verified | + | American user | 1 | America/Anchorage | verified | + And event content: + | title | body | field_content_visibility | field_event_date | field_event_date_end | field_event_all_day | langcode | author | + | My awesome australian and and american pepsi-cola party | lorem ipsum | public | today | today | 1 | en | regular user | + And I am logged in as "Australian user" + + Given I am on the event overview + When I click radio button "Ongoing and upcoming events" + And I press "Filter" + Then I should see "My awesome australian and and american pepsi-cola party" + + Given I am logged in as "American user" + When I am on the event overview + And I click radio button "Ongoing and upcoming events" + And I press "Filter" + Then I should see "My awesome australian and and american pepsi-cola party" + Scenario: Successfully use filters for ongoing and upcoming events with today's end date Given users: | name | mail | status | timezone | roles |