Skip to content

Commit

Permalink
LPS-125462 Create Poshi test
Browse files Browse the repository at this point in the history
  • Loading branch information
carolmariaabb authored and brianchandotcom committed Jan 7, 2021
1 parent 20a9ac5 commit 70657cb
Showing 1 changed file with 99 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4547,6 +4547,105 @@ definition {
uploadFileName = "Document -_.jpg");
}

@description = "This is a use case for LPS-125462."
@priority = "5"
test SubmitFormWithUploadFieldAsNewUser {
property portal.acceptance = "false";
property portal.upstream = "true";

Navigator.openURL();

ProductMenu.gotoPortlet(
category = "Content & Data",
portlet = "Forms");

FormsAdminNavigator.gotoAddForm();

Form.editName();

Form.editDescription();

Form.gotoAddField(
fieldPositionNumber = "1",
fieldType = "Upload");

var uploadFieldName = FormFields.getFieldName();

Form.publishForm();

FormsAdminNavigator.gotoPublishCopyURLLink();

var publishedFormPublicURL = Form.getPublishedFormPublicURL(
publishedFormPublicURL = "${publishedFormPublicURL}"
);

Navigator.openURL();

ApplicationsMenu.gotoPortlet(
category = "Users",
panel = "Control Panel",
portlet = "Users and Organizations");

User.addCP(
userEmailAddress = "userea@liferay.com",
userFirstName = "userfn",
userLastName = "userln",
userScreenName = "usersn");

ApplicationsMenu.gotoPortlet(
category = "Users",
panel = "Control Panel",
portlet = "Users and Organizations");

User.editPasswordCP(
userEmailAddress = "userea@liferay.com",
userScreenName = "usersn");

ApplicationsMenu.gotoPortlet(
category = "Users",
panel = "Control Panel",
portlet = "Users and Organizations");

var siteName = TestCase.getSiteName(siteName = "${siteName}");

User.editUserSiteCP(
siteName = "${siteName}",
userScreenName = "usersn");

User.logoutAndLoginPG(
userLoginEmailAddress = "userea@liferay.com",
userScreenName = "usersn");

Navigator.openSpecificURL(url = "${publishedFormPublicURL}");

FormPortlet.waitFormRenderer(text = "Submit");

FormFields.viewUploadField(
fieldLabel = "Upload",
fieldName = "${uploadFieldName}");

ItemSelector.gotoItemSelectorViaSelectButton();

ItemSelector.uploadFile(
navTab = "Documents and Media",
uploadFileName = "Document_1.jpg");

FormPortlet.submitSuccessfully();

User.logoutAndLoginPG(
userLoginEmailAddress = "test@liferay.com",
userLoginFullName = "Test Test");

ApplicationsMenu.gotoPortlet(
category = "Users",
panel = "Control Panel",
portlet = "Users and Organizations");

User.deactivateCP(userFirstName = "userfn");

User.deleteCP();
}

@description = "This is a use case for LPS-73322."
@priority = "4"
test SubmitWithRequiredDateField {
Expand Down

0 comments on commit 70657cb

Please sign in to comment.