Maurizio Vitale 941df740d5 [ADF-4948] Move the resources config in the process cloud lib - Part 2 (#5143)
* Move the resources in the cloud lib

* Use adf cli

* Add missing process definitions

* Add debug points

* Print new class

* Use the resources under the adf-testing

* Use the resources from testing package

* Fix adf-testing bugs

* remove empty row

* Remove the npm install

* Remove log stuff

* Remove the console log

* Fix typo on process def names
Improve the debug e2e command

* Fix lowercase name

* Check the process cloud env and content env

* Add the new process definitions

* Add missing process definitions

* Use the latest simpleapp

* Rollback the bigFile

* Use relative link

* Trasnpile the adf-testing before using it
2019-10-17 14:31:58 +01:00

525 lines
17 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Provides resources used throughout the application
*
* @class util.Resources
*/
var exports = module.exports = {};
exports.Files = {
APP_WITH_DATE_FIELD_FORM: {
file_location: "/resources/apps/TestDate.zip",
title: "TestDate",
process_title: "TestDateField",
id: -1,
form_fields: {
testDate_field: "activiti-testdate",
completed_task_date_field: "span[ng-if*='field.dateDisplayFormat']"
}
},
APP_WITH_PROCESSES: {
file_location: "/resources/apps/App_with_processes.zip",
title: "App_with_processes",
description: "Description for app",
process_se_name: "process_with_se",
process_wse_name: "process_without_se",
task_name: "Task Test 2"
},
APP_DYNAMIC_TABLE_DROPDOWN: {
file_location: "/resources/apps/AppDynamicTableDropdown.zip",
title: "App3576",
description: "Description for app",
processName: "Process3576"
},
APP_WITH_USER_WIDGET: {
file_location: "/resources/apps/appWithUser.zip",
title: "appWithUser",
description: "Description for app",
processName: "ProcessWithUser",
startForm: "user",
taskForm: "displayUser",
peopleWidgetId: "label1"
},
NO_FORM_APP: {
file_location: "/resources/apps/No form app.zip",
title: "No form app",
taskName: "No form task"
},
SIMPLE_APP_WITH_USER_FORM: {
file_location: "/resources/apps/Simple App with User Form.zip",
title: "Simple App with User Form",
description: "Simple app with a process having a User task with a form attached.",
processName: "Simple Process",
processDiagramFileLocation: '/resources/apps/SimpleAppWithUserForm.png',
processThumbnail: '/resources/processes/Simple Process Thumbnail.png',
formName: "Simple form",
id: -19,
taskName: "User Task",
form_fields: {
text_field: "activiti-textfield",
form_fieldId: "textfield",
text_field_value: "Hi tester, from Rest call"
},
visibilityTabForm: {
formName: "visibilityTabWithFields"
},
},
WIDGETS_SMOKE_TEST: {
file_location: "/resources/apps/Widgets smoke test.zip",
title: "Widgets smoke test",
formName: "Widgets smoke test",
title: "Widgets smoke test",
form_fields: {
text_id: "text",
header_id: "header",
number_id: "number",
amount_id: "amount",
people_id: "people",
group_id: "groupofpeople",
multiline_id: "multilinetext",
typeAhead_id: "typeahead",
displayText_id: "displaytext",
displayValue_id: "displayvalue",
hyperlink_id: "hyperlink",
attachFolder_id: "attachfolder",
attachFile_id: "attachfile",
date_id: "date",
dateTime_id: "dateandtime",
checkbox_id: "checkbox",
dropdown_id: "dropdown",
drofpdown_value: "mat-select[id='dropdown'] span span",
radioButtons_id: "radiobuttons",
dynamicTable_id: "dynamictable"
}
},
FORM_ADF: {
file_location: "/resources/apps/Test-ADF.zip",
title: "Test App",
formName: "test-1",
form_fields: {
text_id: "label",
displayText_id: "label1",
displayValue_id: "labeldisplayusingvariable"
}
},
FILE_FORM_ADF: {
file_location: "/resources/apps/App_file_form.zip",
attached_file: "generatedDocument.docx",
title: "ADF-180-test",
formName: "ADF-180-test",
form_fields: {
container_id: "1504783671016"
}
},
WIDGET_CHECK_APP: {
file_location: "/resources/apps/WidgetApps.zip",
TEXT: {
formName: "TextWidgetForm",
title: "TextWidgetForm",
processName: "TextWidgetProcess",
FIELD: {
simpleText: "textsimple",
textMinMax: "textminmax",
textMask: "textmask",
textMaskReversed: "textmaskreversed",
textRegexp: "textregexp",
showHiddenText: "showhiddentext",
textHidden: "texthidden"
}
},
MULTILINE_TEXT: {
formName: "MultiWidgetProcess",
title: "MultiWidgetProcess",
processName: "MultiWidgetProcess",
FIELD: {
multiSimple: "multisimple",
multiMinMax: "multiminmax",
multiRegexp: "multiregexp",
showMultiHidden: "showmultihidden",
multiVisible: "multivisible"
}
},
CHECKBOX: {
formName: "CheckboxVisibilityProcess",
title: "CheckboxVisibilityProcess",
processName: "CheckboxVisibilityProcess",
FIELD: {
number_input_id: "label",
checkbox_field_id: "label1",
checkbox_id: "field-checkbox_input-container",
checkbox_input_id: "label1",
checkbox_label: "Label1"
}
},
DATE: {
formName: "DateWidgetProcess",
title: "DateWidgetProcess",
processName: "DateWidgetProcess",
FIELD: {
date_input: "date_standard",
date_between_input: "betweendate"
}
},
DATETIME: {
formName: "DateTimeProcess",
title: "DateTimeProcess",
processName: "DateTimeProcess",
FIELD: {
date_time_input: "datetimegeneral",
date_time_between_input: "dateandtimeadvance"
}
},
DROPDOWN: {
formName: "DropdownProcess",
title: "DropdownProcess",
processName: "DropdownProcess",
FIELD: {
general_dropdown: "dropdown",
dropdown_visible: "dropdownvisibility",
checkbox_id: "clickcheckbox",
option_0: "empty",
option_1: "option_1",
option_2: "option_2"
}
},
NUMBER: {
formName: "NumberProcess",
title: "NumberProcess",
processName: "NumberProcess",
FIELD: {
number_general: "numbergeneral",
number_visible: "number",
checkbox_id: "check"
}
},
VISIBILITY: {
formName: "visibility-process",
title: "visibility-process",
processName: "visibility-process"
},
AMOUNT: {
formName: "AmountProcess",
title: "AmountProcess",
processName: "AmountProcess",
FIELD: {
amount_input_id: "amunt_widget",
checkbox_id: "check"
}
},
RADIO_BUTTONS: {
formName: "RadioButtonsWidgetProcess",
title: "RadioButtonsWidgetProcess",
processName: "RadioButtonsWidgetProcess",
FIELD: {
radio_buttons_id: "RockFM",
checkbox_id: "Dollars"
}
},
HYPERLINK: {
formName: "HyperlinkProcess",
title: "HyperlinkProcess",
processName: "HyperlinkProcess",
FIELD: {
hyperlink_id: "hyperlink_automation",
checkbox_id: "check"
}
},
DYNAMIC_TABLE: {
formName: "DynamicTableProcess",
title: "DynamicTableProcess",
processName: "DynamicTableProcess",
FIELD: {
dynamic_table_age_id: "label2",
dynamic_table_date_id: "label",
checkbox_id: "viewtable",
dateTime_input_id: "datetime",
row: "label-row-0"
}
},
DYNAMIC_TABLE_USERS: {
formName: "ALL_WIDGETS",
title: "ALL_WIDGETS",
processName: "ALL_WIDGETS",
FIELD: {
dynamic_table_age_id: "label2",
dynamic_table_date_id: "label",
checkbox_id: "viewtable",
dateTime_input_id: "datetime",
row: "label-row-0"
}
},
HEADER: {
formName: "HeaderProcess",
title: "HeaderProcess",
processName: "HeaderProcess",
FIELD: {
header_id: "Happy",
checkbox_id: "check"
}
},
ATTACH_FOLDER: {
formName: "UploadFolderProcess",
title: "UploadFolderProcess",
processName: "UploadFolderProcess",
FIELD: {
checkbox_id: "check",
upload_button_id: "Upload"
}
},
ADD_PEOPLE: {
formName: "AddPeopleProcess",
title: "AddPeopleProcess",
processName: "AddPeopleProcess",
FIELD: {
widget_id: "Finally",
user_id: "adf-people-search-input",
checkbox_id: "check"
}
}
},
DYNAMIC_TABLE_APP: {
file_location: "/resources/apps/Dynamic Table App.zip",
title: "Dynamic Table App",
formName: "Dynamic Table App",
process_se_name: "DynamicTableProcess"
},
ADF_DOCUMENTS: {
JS: {
file_location: "/resources/adf/a_js_file.js",
file_name: "a_js_file.js"
},
PDF: {
file_location: "/resources/adf/allFileTypes/a_file_supported.pdf",
file_name: "a_file_supported.pdf",
short_file_name: "a_file",
first_page_text: "one",
second_page_text: "two",
last_page_text: "eight",
last_page_number: "8"
},
PDF_B: {
file_location: "/resources/adf/allFileTypes/b_file_supported.pdf",
file_name: "b_file_supported.pdf"
},
PDF_C: {
file_location: "/resources/adf/allFileTypes/c_file_supported.pdf",
file_name: "c_file_supported.pdf"
},
PDF_D: {
file_location: "/resources/adf/allFileTypes/d_file_supported.pdf",
file_name: "d_file_supported.pdf"
},
PDF_ALL: {
file_location: "/resources/adf/allFileTypes/pdf_all_properties.pdf",
file_name: "pdf_all_properties.pdf"
},
PDF_PROTECTED: {
file_location: "/resources/adf/allFileTypes/a_file_protected.pdf",
file_name: "a_file_protected.pdf",
first_page_text: "A Journey into Test Frameworks",
second_page_text: "After looking into Spocks GitHub",
last_page_text: "and provide feedback. The main advantages being the readability of the te",
last_page_number: "8",
password: "1q2w3e4r"
},
LARGE_FILE: {
file_location: "/resources/adf/BigFile.zip",
file_name: "BigFile.zip"
},
EXCEL: {
file_location: "/resources/adf/allFileTypes/a_excel_file.xlsx",
file_name: "a_excel_file.xlsx"
},
DOCX_SUPPORTED: {
file_location: "/resources/adf/allFileTypes/a_file_supported.docx",
file_name: "a_file_supported.docx",
first_page_text: "A Journey into Test Frameworks",
second_page_text: "After looking into Spocks GitHub",
last_page_text: "and provide feedback. The main advantages being the readability of the te",
last_page_number: "8"
},
DOCX: {
file_location: "/resources/adf/allFileTypes/a_file_unsupported.docx",
file_name: "a_file_unsupported.docx"
},
FOLDER_ONE: {
folder_location: "/resources/adf/folderOne",
folder_name: "folderOne"
},
FOLDER_TWO: {
folder_location: "/resources/adf/folderTwo",
folder_name: "folderTwo"
},
FOLDER_EXCLUDED: {
folder_location: "/resources/adf/folderExcluded",
folder_name: "folderExcluded"
},
FILE_INSIDE_FOLDER_ONE: {
file_location: "/resources/adf/folderOne/share_profile_pic.png",
file_name: "share_profile_pic.png"
},
FILE_INSIDE_FOLDER_TWO: {
file_location: "/resources/adf/folderOne/a_file.txt",
file_name: "a_file.txt"
},
JPG: {
file_location: "/resources/adf/allFileTypes/a_jpg_file.jpg",
file_name: "a_jpg_file.jpg"
},
MP4: {
file_location: "/resources/adf/allFileTypes/a_mp4_file.mp4",
file_name: "a_mp4_file.mp4"
},
PNG: {
file_location: "/resources/adf/allFileTypes/a_png_file.png",
file_name: "a_png_file.png"
},
PNG_B: {
file_location: "/resources/adf/allFileTypes/b_png_file.png",
file_name: "b_png_file.png"
},
PNG_C: {
file_location: "/resources/adf/allFileTypes/c_png_file.png",
file_name: "c_png_file.png"
},
PNG_D: {
file_location: "/resources/adf/allFileTypes/d_png_file.png",
file_name: "d_png_file.png"
},
PPT: {
file_location: "/resources/adf/allFileTypes/a_ppt_file.pptx",
file_name: "a_ppt_file.pptx",
first_page_text: "PPTX test file"
},
PPT_B: {
file_location: "/resources/adf/allFileTypes/b_ppt_file.pptx",
file_name: "b_ppt_file.pptx"
},
TEST: {
file_location: "/resources/adf/allFileTypes/testExtension.test",
file_name: "testExtension.test"
},
TXT: {
file_location: "/resources/adf/allFileTypes/a_txt_file.rtf",
file_name: "a_txt_file.rtf"
},
TXT_400B: {
file_location: "/resources/adf/allFileTypes/file400Bytes.txt",
file_name: "file400Bytes.txt"
},
TXT_0B: {
file_location: "/resources/adf/allFileTypes/zeroBytesFile.txt",
file_name: "zeroBytesFile.txt"
},
ZIP: {
file_location: "/resources/adf/allFileTypes/a_zip_file.mp4.zip",
file_name: "a_zip_file.mp4.zip"
},
PAGES: {
file_location: "/resources/adf/allFileTypes/file_unsupported.pages",
file_name: "file_unsupported.pages"
},
UNSUPPORTED: {
file_location: "/resources/adf/allFileTypes/file_unsupported.3DS",
file_name: "file_unsupported.3DS"
},
INI: {
file_location: "/resources/adf/allFileTypes/desktop.ini",
file_name: "desktop.ini"
},
ARCHIVE_FOLDER: {
folder_location: "/resources/adf/allFileTypes/documents/archive",
folder_name: "archive"
},
EXCEL_FOLDER: {
folder_location: "/resources/adf/allFileTypes/documents/excel",
folder_name: "excel"
},
OTHER_FOLDER: {
folder_location: "/resources/adf/allFileTypes/documents/other",
folder_name: "other"
},
PPT_FOLDER: {
folder_location: "/resources/adf/allFileTypes/documents/ppt",
folder_name: "ppt"
},
TEXT_FOLDER: {
folder_location: "/resources/adf/allFileTypes/documents/text",
folder_name: "text"
},
WORD_FOLDER: {
folder_location: "/resources/adf/allFileTypes/documents/word",
folder_name: "word"
},
IMG_FOLDER: {
folder_location: "/resources/adf/allFileTypes/images",
folder_name: "images"
},
IMG_RENDITION_FOLDER: {
folder_location: "/resources/adf/allFileTypes/images-rendition",
folder_name: "images-rendition"
}
},
PROFILE_IMAGES: {
ECM: {
file_location: "/resources/adf/share_profile_pic.jpg",
file_name: "share_profile_pic.jpg"
},
BPM: {
file_location: "/resources/adf/activiti_profile_pic.png",
file_name: "activiti_profile_pic.png"
}
}
};