File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,11 @@ public function clickNotification(string $expectedType, string $expectedDescript
24
24
continue ;
25
25
}
26
26
27
- $ description = $ notification ->find ($ this ->getLocator ('notificationDescription ' ))->getText ();
27
+ $ notificationTitle = $ this ->getHTMLPage ()->setTimeout (3 )->find ($ this ->getLocator ('notificationDescriptionTitle ' ))->getText ();
28
+ $ notificationText = $ this ->getHTMLPage ()->setTimeout (3 )->find ($ this ->getLocator ('notificationDescriptionText ' ))->getText ();
29
+
30
+ $ description = sprintf ('%s %s ' , $ notificationTitle , $ notificationText );
31
+
28
32
if ($ description !== $ expectedDescription ) {
29
33
continue ;
30
34
}
@@ -50,8 +54,9 @@ protected function specifyLocators(): array
50
54
return [
51
55
new VisibleCSSLocator ('notificationsPopupTitle ' , '.ibexa-side-panel__header ' ),
52
56
new VisibleCSSLocator ('notificationItem ' , '.ibexa-notifications-modal__item ' ),
53
- new VisibleCSSLocator ('notificationType ' , '.ibexa-notifications-modal__type ' ),
54
- new VisibleCSSLocator ('notificationDescription ' , '.ibexa-notifications-modal__description ' ),
57
+ new VisibleCSSLocator ('notificationType ' , '.ibexa-notifications-modal__type-content > strong > span ' ),
58
+ new VisibleCSSLocator ('notificationDescriptionTitle ' , '.ibexa-notifications-modal__type-content > p.description__title ' ),
59
+ new VisibleCSSLocator ('notificationDescriptionText ' , '.ibexa-notifications-modal__type-content > p.description__text ' ),
55
60
];
56
61
}
57
62
}
You can’t perform that action at this time.
0 commit comments