@@ -55,7 +55,7 @@ public function iGoToUserNotificationWithDetails(TableNode $notificationDetails)
5555 /**
5656 * @Then the notification appears with details:
5757 */
58- public function thereIsNotificationAppearsWithDetails (TableNode $ notificationDetails ): void
58+ public function notificationAppearsWithDetails (TableNode $ notificationDetails ): void
5959 {
6060 $ type = $ notificationDetails ->getHash ()[0 ]['Type ' ];
6161 $ author = $ notificationDetails ->getHash ()[0 ]['Author ' ];
@@ -75,34 +75,34 @@ public function iOpenNotificationMenu(string $description): void
7575 }
7676
7777 /**
78- * @When I click :action action
78+ * @When I perform the :action action on the notification
7979 */
80- public function iClickActionButton (string $ action ): void
80+ public function iPerformNotificationAction (string $ action ): void
8181 {
8282 $ this ->userNotificationPopup ->clickActionButton ($ action );
8383 }
8484
8585 /**
86- * @Then the notification action should be :expectedAction
86+ * @Then the notification should have :expectedAction action available
8787 */
8888 public function verifyNotificationAction (string $ expectedAction ): void
8989 {
90- $ this ->userNotificationPopup ->getActionButton ($ expectedAction );
90+ $ this ->userNotificationPopup ->findActionButton ($ expectedAction );
9191 }
9292
9393 /**
94- * @When I click mark all as read button
94+ * @When I mark all notifications as read
9595 */
96- public function iClickButton (): void
96+ public function markAllNotificationsAsRead (): void
9797 {
9898 $ this ->userNotificationPopup ->verifyIsLoaded ();
9999 $ this ->userNotificationPopup ->clickOnMarkAllAsReadButton ();
100100 }
101101
102102 /**
103- * @When I click view all notifications button
103+ * @When I go to the list of all notifications
104104 */
105- public function iClickViewAllNotificationsButton (): void
105+ public function goToAllNotificationsList (): void
106106 {
107107 $ this ->userNotificationPopup ->verifyIsLoaded ();
108108 $ this ->userNotificationPopup ->clickViewAllNotificationsButton ();
@@ -150,31 +150,31 @@ public function iDeleteNotification(string $notificationTitle): void
150150 }
151151
152152 /**
153- * @Then I should see the text :text in the notifications popup
153+ * @Then an empty notifications state in the popup should be visible
154154 */
155- public function iShouldSeeTextInNotificationsPopup ( string $ expectedMessage ): void
155+ public function emptyNotificationsStateInPopup ( ): void
156156 {
157- $ this ->userNotificationPopup ->verifyNoNotificationsMessage ( $ expectedMessage );
157+ $ this ->userNotificationPopup ->assertEmptyStateVisible ( );
158158 }
159159
160160 /**
161- * @Then I should see the text :text in the All Notifications view
161+ * @Then an empty notifications state should be visible in the All Notifications view
162162 */
163- public function iShouldSeeTextInAllNotificationsView ( string $ expectedMessage ): void
163+ public function emptyNotificationsStateInAllNotificationsView ( ): void
164164 {
165- $ this ->notificationsViewAllPage ->verifyNoNotificationsMessage ( $ expectedMessage );
165+ $ this ->notificationsViewAllPage ->assertEmptyStateVisible ( );
166166 }
167167
168168 /**
169- * @Then the notifications popup should contain :expectedCount notification
169+ * @Then the notifications popup counter should display :expectedCount
170170 */
171- public function thereShouldBeNotificationsInPopup (int $ expectedCount ): void
171+ public function iShouldSeeNotificationsCountInPopup (int $ expectedCount ): void
172172 {
173173 $ this ->userNotificationPopup ->verifyNotificationsCount ($ expectedCount );
174174 }
175175
176176 /**
177- * @Then there should be :expectedCount notification in the All Notifications view
177+ * @Then I should see :expectedCount notifications in the All Notifications view
178178 */
179179 public function thereShouldBeNotificationsInAllNotificationsView (int $ expectedCount ): void
180180 {
0 commit comments