Skip to content
Snippets Groups Projects
Unverified Commit b3bfae8c authored by John Molakvoæ's avatar John Molakvoæ Committed by GitHub
Browse files

Adjust acceptance tests to notifications based on toastify (#15938)

Adjust acceptance tests to notifications based on toastify
parents 452d7696 df8406db
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ class NotificationContext implements Context, ActorAwareInterface {
* @return Locator
*/
public static function notificationMessage($message) {
return Locator::forThe()->xpath("//*[@class = 'row' and normalize-space() = '$message']")->
return Locator::forThe()->xpath("//*[contains(concat(' ', normalize-space(@class), ' '), ' toastify ') and normalize-space(text()) = '$message']")->
descendantOf(self::notificationContainer())->
describedAs("$message notification");
}
......@@ -40,7 +40,7 @@ class NotificationContext implements Context, ActorAwareInterface {
* @return Locator
*/
private static function notificationContainer() {
return Locator::forThe()->id("notification-container")->
return Locator::forThe()->id("content")->
describedAs("Notification container");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment