Skip to content

Commit

Permalink
LRQA-57454 Add case to publish entry with unchanged referenced content
Browse files Browse the repository at this point in the history
  • Loading branch information
JoyceWang08211 authored and brianchandotcom committed May 27, 2020
1 parent 941f939 commit 02e4e2e
Showing 1 changed file with 106 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1513,6 +1513,112 @@ definition {
AssertConsoleTextNotPresent(value1 = "SystemException");
}

@description = "This is a use case for LPS-110701."
@priority = "3"
test PublishWebContentWithUnchangedReferencedContent {
JSONLayout.addWidgetToPublicLayout(
groupName = "Site Name",
layoutName = "Staging Test Page",
widgetName = "Web Content Display");

DMNavigator.openDocumentsAndMediaAdmin(siteURLKey = "site-name");

DMDocument.addCP(
dmDocumentDescription = "DM Document Description",
dmDocumentFile = "Document_1.jpg",
dmDocumentTitle = "DM Document Title");

DMNavigator.gotoDocumentCP(dmDocumentTitle = "DM Document Title");

DMNavigator.gotoURLDetail();

var dmDocumentURL = selenium.getElementValue("//input[contains(@id,'url')]");

JSONWebcontent.addWebContent(
content = "Web Content Content",
groupName = "Site Name",
title = "Web Content Title");

WebContentNavigator.openWebContentAdmin(siteURLKey = "site-name");

WebContentNavigator.gotoEditCP(webContentTitle = "Web Content Title");

DMDocument.linkImage(
dmDocumentURL = "${dmDocumentURL}",
navTab = "URL");

PortletEntry.publish();

Navigator.gotoSitePage(
pageName = "Staging Test Page",
siteName = "Site Name");

WebContentDisplayPortlet.selectWebContent(webContentTitle = "Web Content Title");

Staging.openStagingAdmin(siteURLKey = "site-name");

Staging.activateStagingCP(siteName = "Site Name");

Staging.openStagingAdmin(siteURLKey = "site-name-staging");

Staging.addCustomPublication();

Staging.publishToLive(publicationName = "summCheck");

Staging.openStagingAdmin(siteURLKey = "site-name-staging");

Staging.viewPublicationSummary(
contentList = "Documents and Media,Web Content",
publicationTitle = "summCheck");

Staging.openStagingAdmin(siteURLKey = "site-name-staging");

Staging.addPublishTemplate(
publishTemplateDescription = "Publish Template Description",
publishTemplateName = "Publish Template Name");

Staging.configurePublishToLive(
contentName = "Web Content",
subContent = "Web Content",
uncheckSubSubContent = "Include If Modified");

Staging.savePublishTemplate(
publishTemplateDescription = "Publish Template Description",
publishTemplateName = "Publish Template Name");

Staging.openStagingAdmin(siteURLKey = "site-name-staging");

Staging.addCustomPublication(publishTemplateName = "Publish Template Name");

Staging.publishToLive(publicationName = "No Content Update");

Staging.openStagingAdmin(siteURLKey = "site-name-staging");

Staging.viewPublicationSummary(
noContentList = "Documents and Media,Web Content",
publicationTitle = "No Content Update");

WebContentNavigator.openWebContentAdmin(siteURLKey = "site-name-staging");

WebContentNavigator.gotoEditCP(webContentTitle = "Web Content Title");

WebContent.editCP(
webContentTitle = "Web Content Title",
webContentTitleEdit = "Web Content Title Edit");

Staging.openStagingAdmin(siteURLKey = "site-name-staging");

Staging.addCustomPublication(publishTemplateName = "Publish Template Name");

Staging.publishToLive(publicationName = "Content Update");

Staging.openStagingAdmin(siteURLKey = "site-name-staging");

Staging.viewPublicationSummary(
contentList = "Documents and Media,Web Content",
publicationTitle = "Content Update");
}

@priority = "4"
test RemoveTagsFromPublishBlogAndDM {
Staging.openStagingAdmin(siteURLKey = "site-name");
Expand Down

0 comments on commit 02e4e2e

Please sign in to comment.