From bf3e04126f0e5442084978079779790a3cfb86a2 Mon Sep 17 00:00:00 2001 From: Yang Cao Date: Wed, 15 Nov 2023 18:28:37 +0800 Subject: [PATCH] LPS-201778 Modify case to make it stable --- .../pageaudit/PageAuditSystemSettings.testcase | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/portal-web/test/functional/com/liferay/portalweb/tests/enduser/pageaudit/PageAuditSystemSettings.testcase b/portal-web/test/functional/com/liferay/portalweb/tests/enduser/pageaudit/PageAuditSystemSettings.testcase index 6d7d62977124c4..ddc018f3ebd0bd 100644 --- a/portal-web/test/functional/com/liferay/portalweb/tests/enduser/pageaudit/PageAuditSystemSettings.testcase +++ b/portal-web/test/functional/com/liferay/portalweb/tests/enduser/pageaudit/PageAuditSystemSettings.testcase @@ -54,14 +54,18 @@ definition { PageAudit.setAPIViaSystemSettings(); } - Navigator.openWithAppendToBaseURL(urlAppend = "web/test-site-name/content-page"); - task ("Open Page Audit panel and assert the progress bar") { + Navigator.openWithAppendToBaseURL(urlAppend = "web/test-site-name/content-page"); + + TestUtils.hardRefresh(); + + WaitForPageLoad(); + PageAudit.openPageAuditSidebar(); - Click.javaScriptClick( - key_title = "Relaunch", - locator1 = "Button#ANY_TITLE"); + Click( + key_text = "reload", + locator1 = "Icon#ANY"); AssertVisible(locator1 = "PageAudit#PROGRESS_BAR"); }