Skip to content

Commit

Permalink
LPS-197121 Update lock message in poshi tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ambrinchaudhary authored and brianchandotcom committed Sep 28, 2023
1 parent 598718c commit 534c155
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ definition {

AssertTextEquals.assertPartialText(
locator1 = "Message#CHECKOUT_SUCCESS",
value1 = "You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
value1 = "Info:You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");

DMNavigator.openDocumentsAndMediaAdmin(siteURLKey = "guest");

Expand All @@ -944,7 +944,7 @@ definition {

AssertTextEquals(
locator1 = "Message#CHECKOUT_SUCCESS",
value1 = "You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
value1 = "Info:You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");

DMNavigator.gotoVerticalEllipsisMenuItem(menuItem = "Cancel Checkout");

Expand Down Expand Up @@ -986,12 +986,12 @@ definition {
if (${dmRepositoryName} == "true") {
AssertTextEquals.assertPartialText(
locator1 = "Message#CHECKOUT_SUCCESS",
value1 = "You now have an indefinite lock on this document. No one else can edit this document until you unlock it. This lock will never expire.");
value1 = "Info:You now have an indefinite lock on this document. No one else can edit this document until you unlock it. This lock will never expire.");
}
else {
AssertTextEquals.assertPartialText(
locator1 = "Message#CHECKOUT_SUCCESS",
value1 = "You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
value1 = "Info:You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
}

Click(locator1 = "Icon#TOOLBAR_ELLIPSIS");
Expand Down Expand Up @@ -1073,7 +1073,7 @@ definition {

AssertTextEquals(
locator1 = "Message#CHECKOUT_SUCCESS",
value1 = "You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
value1 = "Info:You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");

DMNavigator.gotoVerticalEllipsisMenuItem(menuItem = "Checkin");

Expand Down Expand Up @@ -1122,7 +1122,7 @@ definition {
if (${dmRepositoryName} == "true") {
AssertTextEquals.assertPartialText(
locator1 = "Message#CHECKOUT_SUCCESS",
value1 = "You now have an indefinite lock on this document. No one else can edit this document until you unlock it. This lock will never expire.");
value1 = "Info:You now have an indefinite lock on this document. No one else can edit this document until you unlock it. This lock will never expire.");
}
else if (isSet(editStatus)) {
AssertClick(
Expand All @@ -1131,12 +1131,12 @@ definition {

AssertTextEquals.assertPartialText(
locator1 = "Message#CHECKOUT_SUCCESS",
value1 = "You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
value1 = "Info:You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
}
else {
AssertTextEquals.assertPartialText(
locator1 = "Message#CHECKOUT_SUCCESS",
value1 = "You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
value1 = "Info:You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
}
}

Expand All @@ -1153,7 +1153,7 @@ definition {

AssertTextEquals.assertPartialText(
locator1 = "Message#CHECKOUT_SUCCESS",
value1 = "You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
value1 = "Info:You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
}

macro checkoutViaManagementBar {
Expand Down Expand Up @@ -3245,7 +3245,7 @@ definition {
AssertTextNotPresent(value1 = "You now have an indefinite lock on this document. No one else can edit this document until you unlock it. This lock will never expire.");
}
else {
AssertTextNotPresent(value1 = "You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
AssertTextNotPresent(value1 = "Info:You now have a lock on this document. No one else can edit this document until you unlock it. This lock will automatically expire in 1 day.");
}
}

Expand Down

0 comments on commit 534c155

Please sign in to comment.