From 655a424c34de8a32203bd1f97a261d0e893f51da Mon Sep 17 00:00:00 2001 From: pachlava Date: Sun, 26 Nov 2023 20:47:10 +0200 Subject: [PATCH] [UI Tests] Changed an element locator. --- WordPress/UITestsFoundation/Screens/NotificationsScreen.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WordPress/UITestsFoundation/Screens/NotificationsScreen.swift b/WordPress/UITestsFoundation/Screens/NotificationsScreen.swift index 3db4d07a04a2..8948da7c03dd 100644 --- a/WordPress/UITestsFoundation/Screens/NotificationsScreen.swift +++ b/WordPress/UITestsFoundation/Screens/NotificationsScreen.swift @@ -115,9 +115,9 @@ public class NotificationsScreen: ScreenObject { public func likeComment() -> Self { - let isCommentTextDisplayed = app.webViews.staticTexts.firstMatch.waitForExistence(timeout: 15) + let isCommentOnTextDisplayed = app.staticTexts["Comment on"].firstMatch.waitForExistence(timeout: 5) - if isCommentTextDisplayed { + if isCommentOnTextDisplayed { likeCommentButton.tap() }