Skip to content

Commit

Permalink
LRAC-8298 Add ShowsKeywordsBeingSearched testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
DebSouza authored and brianchandotcom committed Aug 19, 2021
1 parent 864e383 commit 2855edf
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 3 deletions.
Expand Up @@ -8,7 +8,7 @@ definition {
if (!(isSet(siteName))) {
siteName = "Liferay DXP";
}

ACDXPSettings.goToInstanceSettingsAC();

Click(locator1 = "ACDXPSettings#TOKEN_INPUT_FIELD");
Expand Down
Expand Up @@ -15,6 +15,8 @@ definition {
TestCase.setUpPortalInstance();

ACUtils.launchDXP();

ACUtils.addSiteAndPage();
}

tearDown {
Expand All @@ -25,6 +27,9 @@ definition {
if ("${testPortalInstance}" == "true") {
PortalInstances.tearDownCP();
}
else {
JSONGroup.deleteGroupByName(groupName = "Site Name");
}

ACUtils.tearDownAC();
}
Expand All @@ -39,12 +44,55 @@ definition {
}

@description = "Feature ID: Legacy | Automation ID: LRAC-8298 | Test Summary: Site overview search terms shows what keywords are being searched for"
@ignore = "true"
@priority = "5"
test ShowsKeywordsBeingSearched {
task ("Connect DXP to AC") {
var propertyName = ACDXPSettings.connectDXPtoAnalyticsCloud();
}

task ("Search keywords on DXP Search Bar") {
Navigator.openURL();

// TODO LRAC-8298 ShowsKeywordsBeingSearched
for (var keyword : list "liferay,ac") {
ContentDashboard.searchValue(webContentTitle = "${keyword}");
}
}

task ("Close sessions") {
ACUtils.closeAllSessions();

Pause(locator1 = "30000");
}

task ("Navigate to AC workspace") {
ACUtils.launchAC();
}

task ("Switch to new property in AC") {
ACProperties.switchProperty(propertyName = "${propertyName}");
}

task ("Go to sites pages tab") {
ACNavigation.goToSites();

ACSites.viewSiteOverviewDashboardCards();
}

task ("View the new report") {
ACCards.viewCards(cardTitle = "Search Terms");

ACTimeFilter.clickTimeFilterButton(cardName = "Search Terms");

ACTimeFilter.setLast24Hours();
}

task ("Assert Keywords Searched") {
for (var keyword : list "liferay,ac") {
AssertElementPresent(
key_keyword = "${keyword}",
locator1 = "ACSites#SEARCHED_KEYWORD");
}
}
}

}

0 comments on commit 2855edf

Please sign in to comment.