UNPKG

@umbraco/playwright-testhelpers

Version:

Test helpers for making playwright tests for Umbraco solutions

485 lines 27.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FormsUiHelper = void 0; const UiBaseLocators_1 = require("./UiBaseLocators"); const test_1 = require("@playwright/test"); class FormsUiHelper extends UiBaseLocators_1.UiBaseLocators { quickCreateNewBtn; createNewFormModalBtn; saveFormBtn; formNameTxt; formPageNametxt; formGroupNameTxt; formExpandBtn; formAddNewPageBtn; formAddNewGroupBtn; formPage; formAddQuestionBtn; formFieldType; formFieldNameTxt; formSubmitButtonModal; formTree; formActionModal; formDeleteThreeDotBtn; formWorkspaceEditor; formSettingIcon; formSettingStoreRecordBtn; formSettingCaptions; formSettingStyling; formSettingValidation; formSettingAutocomplete; formSettingModeration; formSettingFieldsDisplayed; formSettingDataRetention; formSettingCaptionsLabel; formSettingStylingLabel; formSettingValidationLabel; formSettingAutocompleteLabel; formSettingModerationLabel; formSettingFieldsDisplayedLabel; formSettingDataRetentionLabel; formWorkflowConfigureBtn; formWorkflowOnSubmitStage; formWorkflowAddButtonModal; formConfigureWorkflowModal; formEditWorkflowModal; formEditFieldModal; formMenuItemForForm; formInputTxt; formInputNumber; formToggleSlider; formMenuItemForPrevalueSource; createNewPrevaluesourceModalBtn; prevalueSourceExpandBtn; prevalueSourceTree; prevalueSourceDeleteBtn; formFieldMandatory; formFieldRegex; formWorkflowNameTxt; prevalueSourceCacheContainer; prevalueSourceTypeLabel; formSettingFieldsDisplayedContainer; formSettingDataRetentionContainer; formSettingValidationContainer; formSettingCaptionsContainer; formSettingStylingContainer; formSettingAutocompleteContainer; formSettingModerationContainer; prevalueSourceOriginModal; constructor(page) { super(page); this.quickCreateNewBtn = page.locator('uui-button[label="Create…"]'); this.createNewFormModalBtn = page.locator('#menu-item').getByLabel('New Form…'); this.createNewPrevaluesourceModalBtn = page.locator('umb-ref-item'); this.saveFormBtn = page.getByLabel('Save', { exact: true }); this.formNameTxt = page.locator('#nameInput input[aria-label="Enter a name…"]'); this.formPageNametxt = page.locator('input[type = "text"][placeholder = "Untitled page (optional)"]'); this.formGroupNameTxt = page.locator('input[type = "text"][placeholder = "Untitled group (optional)"]'); this.formAddNewPageBtn = page.getByLabel('Add new page', { exact: true }); this.formAddNewGroupBtn = page.getByLabel('Add new group', { exact: true }); this.formPage = page.locator('forms-form-page'); this.formAddQuestionBtn = page.getByLabel("Add question", { exact: true }); this.formEditFieldModal = page.locator("form-edit-field-modal"); this.formFieldType = page.locator('#btn-item'); this.formFieldNameTxt = page.locator('#caption input[type="text"][aria-label="caption"]'); this.formSubmitButtonModal = page.getByLabel('Submit', { exact: true }); this.formExpandBtn = page.locator('#menu-item button[aria-label="Expand child items for Forms"] svg'); this.formTree = page.locator('umb-tree[alias="Forms.Tree.Forms"]'); this.formMenuItemForForm = page.locator('uui-menu-item[label="Forms"]'); this.formMenuItemForPrevalueSource = page.locator('uui-menu-item[label="Prevalue Sources"]'); this.formActionModal = page.locator('#action-modal'); this.formDeleteThreeDotBtn = page.locator('uui-menu-item[label="Delete…"]'); this.formWorkspaceEditor = page.locator('umb-workspace-editor[alias="Forms.Workspace.Form"]'); this.formSettingIcon = page.locator('umb-icon[name="settings"]'); this.formSettingStoreRecordBtn = page.locator('forms-settings-store-records'); this.formSettingCaptions = page.locator('forms-settings-captions'); this.formSettingStyling = page.locator('forms-settings-styling'); this.formSettingValidation = page.locator('forms-settings-validation'); this.formSettingAutocomplete = page.locator('forms-settings-autocomplete'); this.formSettingModeration = page.locator('forms-settings-moderation'); this.formSettingFieldsDisplayed = page.locator('forms-settings-fields-display'); this.formSettingDataRetention = page.locator('forms-settings-data-retention'); this.formSettingCaptionsLabel = page.locator('uui-label[title="captions"]'); this.formSettingStylingLabel = page.locator('uui-label[title="styling"]'); this.formSettingValidationLabel = page.locator('uui-label[title="validation"]'); this.formSettingAutocompleteLabel = page.locator('uui-label[title="autocomplete"]'); this.formSettingModerationLabel = page.locator('uui-label[title="manualApproval"]'); this.formSettingFieldsDisplayedLabel = page.locator('uui-label[title="fieldsDisplayed"]'); this.formSettingDataRetentionLabel = page.locator('uui-label[title="dataRetention"]'); this.formWorkflowConfigureBtn = page.getByLabel('Configure workflow', { exact: true }); this.formWorkflowOnSubmitStage = page.locator('form-configure-workflow-stage[collectionname="onSubmit"]'); this.formWorkflowAddButtonModal = page.locator('.stage-block', { hasText: "Add workflow" }); this.formConfigureWorkflowModal = page.locator('form-configure-workflow-modal'); this.formEditWorkflowModal = page.locator('form-edit-workflow-modal'); this.formInputTxt = page.locator('input[type = "text"]'); this.formInputNumber = page.locator('input[type = "number"]'); this.formToggleSlider = page.locator('uui-toggle #toggle'); this.prevalueSourceExpandBtn = page.locator('#menu-item button[aria-label="Expand child items for Prevalue Sources"] svg'); this.prevalueSourceTree = page.locator('umb-tree[alias="Forms.Tree.PrevalueSources"]'); this.prevalueSourceDeleteBtn = page.locator('uui-button[label="Delete..."]'); this.prevalueSourceCacheContainer = this.page.locator('umb-property-layout[alias="_cachePrevalues"]'); this.prevalueSourceTypeLabel = this.page.locator("[label = 'Type']"); this.formFieldMandatory = this.page.locator('umb-property-layout[alias="mandatory"]'); this.formFieldRegex = this.page.locator('umb-property-layout[alias="regex"]'); this.formWorkflowNameTxt = this.page.locator('umb-property-layout[alias="name"] input[type=text]'); this.formSettingFieldsDisplayedContainer = this.formSettingFieldsDisplayed.locator(this.formSettingFieldsDisplayedLabel); this.formSettingDataRetentionContainer = this.formSettingDataRetention.locator(this.formSettingDataRetentionLabel); this.formSettingValidationContainer = this.formSettingValidation.locator(this.formSettingValidationLabel); this.formSettingCaptionsContainer = this.formSettingCaptions.locator(this.formSettingCaptionsLabel); this.formSettingStylingContainer = this.formSettingStyling.locator(this.formSettingStylingLabel); this.formSettingAutocompleteContainer = this.formSettingAutocomplete.locator(this.formSettingAutocompleteLabel); this.formSettingModerationContainer = this.formSettingModeration.locator(this.formSettingModerationLabel); this.prevalueSourceOriginModal = this.page.locator('umb-body-layout[headline="Pick origin"]'); } /* * Methods for Forms. */ async clickQuickCreateFormButton() { await this.formMenuItemForForm.hover(); await this.formMenuItemForForm.locator(this.quickCreateNewBtn).click(); } async clickNewFormButton() { await (0, test_1.expect)(this.createNewFormModalBtn).toBeVisible(); await this.createNewFormModalBtn.click(); } async clickSaveFormButton() { await this.saveFormBtn.click(); } async fillFormName(name) { await (0, test_1.expect)(this.formNameTxt).toBeVisible(); await this.formNameTxt.fill(name); } async fillFormPageName(position, name) { const nameInput = this.formPageNametxt.nth(position); await (0, test_1.expect)(nameInput).toBeVisible(); await nameInput.fill(name); } async fillFormGroupName(position, name) { const groupInput = this.formGroupNameTxt.nth(position); await (0, test_1.expect)(groupInput).toBeVisible(); await groupInput.fill(name); } async fillFormFieldName(name) { await this.formEditFieldModal.locator(this.formFieldNameTxt).fill(name); } async clickAddNewPageButton() { await this.formAddNewPageBtn.click(); } async clickAddNewGroupButton() { await this.formAddNewGroupBtn.click(); } async clickAddQuestionButton(index = 0) { const button = this.formPage.nth(index).locator(this.formAddQuestionBtn); await button.click(); } async chooseFormFieldType(type) { await this.formFieldType.filter({ hasText: type }).nth(0).click(); } async clickExpandFormsTreeButton() { await this.formExpandBtn.click(); } async doesFormTreeHaveFormName(name) { await (0, test_1.expect)(this.formTree).toContainText(name); } async goToFormWithName(name) { await this.formTree.getByText(name, { exact: true }).click(); } async clickFormFieldTypeSubmitModal() { await this.formSubmitButtonModal.click(); } async clickActionMenuOnFormMenuItem(name) { await this.menuItem.locator('[label="' + name + '"] uui-button[label="Open actions menu"]').click(); } async clickDeleteFormButton() { await this.formActionModal.locator(this.formDeleteThreeDotBtn).click(); await this.deleteExactBtn.click(); } async goToFormSetting() { await this.formWorkspaceEditor.locator(this.formSettingIcon).click(); } async setFormStoreRecordsSetting() { await (0, test_1.expect)(this.formSettingStoreRecordBtn).toBeVisible(); const toggle = this.formSettingStoreRecordBtn.locator(this.formToggleSlider); await (0, test_1.expect)(toggle).toBeVisible(); await toggle.check(); } async setFormCaptionsSetting() { await (0, test_1.expect)(this.formSettingCaptionsContainer).toBeVisible(); for (let i = 0; i < 3; i++) { const captionInput = this.formSettingCaptions.locator(this.formInputTxt).nth(i); await (0, test_1.expect)(captionInput).toBeVisible(); await captionInput.fill("Test Caption " + (i + 1)); } } async setFormStylingSetting() { await (0, test_1.expect)(this.formSettingStylingContainer).toBeVisible(); const cssClassInput = this.formSettingStyling.locator(this.formInputTxt); await (0, test_1.expect)(cssClassInput).toBeVisible(); await cssClassInput.fill("custom-css-class"); const disableDefaultStylesheetInput = this.formSettingStyling.locator(this.formToggleSlider); await (0, test_1.expect)(disableDefaultStylesheetInput).toBeVisible(); await disableDefaultStylesheetInput.click(); } async setFormValidationSetting() { await (0, test_1.expect)(this.formSettingValidationContainer).toBeVisible(); const requiredErrorMessageInput = this.formSettingValidation.locator(this.formInputTxt).nth(0); await (0, test_1.expect)(requiredErrorMessageInput).toBeVisible(); await requiredErrorMessageInput.fill("Required error message"); const invalidErrorMessageInput = this.formSettingValidation.locator(this.formInputTxt).nth(1); await (0, test_1.expect)(invalidErrorMessageInput).toBeVisible(); await invalidErrorMessageInput.fill("Invalid error message"); const showValidationSummaryInput = this.formSettingValidation.locator(this.formToggleSlider).nth(0); await (0, test_1.expect)(showValidationSummaryInput).toBeVisible(); await showValidationSummaryInput.click(); const hideFieldValidationInput = this.formSettingValidation.locator(this.formToggleSlider).nth(1); await (0, test_1.expect)(hideFieldValidationInput).toBeVisible(); await hideFieldValidationInput.click(); const markMandatoryFieldRadioInput = this.formSettingValidation.locator("uui-radio[value = 'MarkMandatoryFields']"); await (0, test_1.expect)(markMandatoryFieldRadioInput).toBeVisible(); await markMandatoryFieldRadioInput.click(); const indicatorInput = this.formSettingValidation.locator(this.formInputTxt).nth(2); await (0, test_1.expect)(indicatorInput).toBeVisible(); await indicatorInput.fill("+"); } async setFormAutocompleteSetting() { await (0, test_1.expect)(this.formSettingAutocompleteContainer).toBeVisible(); const autocompleteAttributeRadioInput = this.formSettingAutocomplete.locator('uui-radio[value = "On"]'); await (0, test_1.expect)(autocompleteAttributeRadioInput).toBeVisible(); await autocompleteAttributeRadioInput.click(); } async setFormModerationSetting() { await (0, test_1.expect)(this.formSettingModerationContainer).toBeVisible(); const enablePostModerationAttributeToggleInput = this.formSettingModeration.locator(this.formToggleSlider); await (0, test_1.expect)(enablePostModerationAttributeToggleInput).toBeVisible(); await enablePostModerationAttributeToggleInput.click(); } async setFormFieldsDisplayedSetting() { await (0, test_1.expect)(this.formSettingFieldsDisplayedContainer).toBeVisible(); const displayDefaultFieldsToggleInput = this.formSettingFieldsDisplayed.locator(this.formToggleSlider); await (0, test_1.expect)(displayDefaultFieldsToggleInput).toBeVisible(); await displayDefaultFieldsToggleInput.click(); await this.page.waitForTimeout(100); // short pause required here otherwise revealed elements are not found const displayFieldsSelect = this.formSettingFieldsDisplayed.locator("select"); await (0, test_1.expect)(displayFieldsSelect).toBeVisible(); await displayFieldsSelect.selectOption({ value: '_system_state' }); const displayFieldsAddButton = this.formSettingFieldsDisplayed.locator("button[id='button']"); await (0, test_1.expect)(displayFieldsAddButton).toBeVisible(); await displayFieldsAddButton.click(); } async setFormDataRetentionSetting(recordNumber) { await (0, test_1.expect)(this.formSettingDataRetentionContainer).toBeVisible(); const retainSubmittedRecordsToggleInput = this.formSettingDataRetention.locator(this.formToggleSlider).nth(0); await (0, test_1.expect)(retainSubmittedRecordsToggleInput).toBeVisible(); await retainSubmittedRecordsToggleInput.click(); await this.page.waitForTimeout(100); // short pause required here otherwise revealed elements are not found const retainSubmittedRecordsNumberInput = this.formSettingDataRetention.locator(this.formInputNumber).nth(0); await (0, test_1.expect)(retainSubmittedRecordsNumberInput).toBeVisible(); await retainSubmittedRecordsNumberInput.fill(recordNumber); } async toggleFieldSetting(settingAlias) { const settingFieldLocator = this.page.locator('umb-property-layout[alias="' + settingAlias + '"] #toggle'); await (0, test_1.expect)(settingFieldLocator).toBeVisible(); await settingFieldLocator.click(); } async applyFieldSettingViaTextInput(settingAlias, settingValue) { const settingFieldLocator = this.page.locator('umb-property[alias="' + settingAlias + '"] input'); await settingFieldLocator.fill(settingValue); } async applyFieldSettingViaDropDown(settingAlias, settingValue) { const settingFieldLocator = this.page.locator('umb-property[alias="' + settingAlias + '"] select'); await settingFieldLocator.selectOption({ value: settingValue }); } async applyFieldSettingViaSlider(settingAlias) { const settingFieldLocator = this.page.locator('umb-property[alias="' + settingAlias + '"] #toggle'); await (0, test_1.expect)(settingFieldLocator).toBeVisible(); await settingFieldLocator.click(); } async applyFieldFileUploadSettings(settingAlias, allowedProvidedExtensions, allowedCustomExtensions, allowMultiple) { const settingFieldLocator = this.page.locator('umb-property-layout[alias="' + settingAlias + '"]'); for (var i = 0; i < allowedProvidedExtensions.length; i++) { const checkBoxLocator = settingFieldLocator.locator('uui-toggle', { hasText: allowedProvidedExtensions[i].toUpperCase() }).locator('#toggle'); await (0, test_1.expect)(checkBoxLocator).toBeVisible(); await checkBoxLocator.click(); } const addNewExtensionLocator = settingFieldLocator.locator('input[placeholder = "Add new allowed file type"]'); await (0, test_1.expect)(addNewExtensionLocator).toBeVisible(); const buttonLocator = settingFieldLocator.locator('form svg'); await (0, test_1.expect)(buttonLocator).toBeVisible(); for (var i = 0; i < allowedCustomExtensions.length; i++) { await addNewExtensionLocator.fill(allowedCustomExtensions[i]); await buttonLocator.click(); } if (allowMultiple) { const alias = "allowMultipleFileUploads"; const multipleUploadLocator = this.page.locator('umb-property-layout[alias="' + alias + '"] #toggle'); await (0, test_1.expect)(multipleUploadLocator).toBeVisible(); await multipleUploadLocator.click(); } } async applyFieldPrevalues(settingAlias, prevalues) { const settingFieldLocator = this.page.locator('umb-property-layout[alias="' + settingAlias + '"]'); for (var i = 0; i < prevalues.length; i++) { const valueFieldLocator = settingFieldLocator.locator("input[placeholder = 'New value']"); await (0, test_1.expect)(valueFieldLocator).toBeVisible(); await valueFieldLocator.fill(prevalues[i].value); const captionFieldLocator = settingFieldLocator.locator("input[placeholder = 'New caption']"); await (0, test_1.expect)(captionFieldLocator).toBeVisible(); await captionFieldLocator.fill(prevalues[i].caption); const buttonLocator = settingFieldLocator.locator('uui-button[label="add"]'); await (0, test_1.expect)(buttonLocator).toBeVisible(); await buttonLocator.click(); } } async applyFieldSettingViaTextArea(settingAlias, settingValue) { const settingFieldLocator = this.page.locator('umb-property[alias="' + settingAlias + '"] textarea'); await settingFieldLocator.fill(settingValue); } async applyFieldSettingViaRichTextInput(settingAlias, settingValue) { const richTextAreaTxt = this.page.locator('umb-property[alias="' + settingAlias + '"] umb-property-editor-ui-tiptap').locator('#editor .tiptap'); await (0, test_1.expect)(richTextAreaTxt).toBeVisible(); await richTextAreaTxt.fill(settingValue); } async applyFieldSettingViaRange(settingAlias, settingValue) { const settingFieldLocator = this.page.locator('umb-property[alias="' + settingAlias + '"]'); await settingFieldLocator.locator('input[type="range"]').fill(settingValue); } async applyFieldSettingViaFieldMappingInput(settingAlias, settingValue) { const settingFieldLocator = this.page.locator('umb-property[alias="' + settingAlias + '"]'); await (0, test_1.expect)(settingFieldLocator).toBeVisible(); for (let i = 0; i < settingValue.length; i++) { const buttonLocator = settingFieldLocator.locator('uui-button[label="add"]'); await (0, test_1.expect)(buttonLocator).toBeVisible(); await buttonLocator.click(); const aliasInputLocator = settingFieldLocator.locator("input[placeholder = 'Alias']").nth(i); await (0, test_1.expect)(aliasInputLocator).toBeVisible(); await aliasInputLocator.fill(settingValue[i].alias); const staticValueInputLocator = settingFieldLocator.locator("input[placeholder = 'Static value']").nth(i); await (0, test_1.expect)(staticValueInputLocator).toBeVisible(); await staticValueInputLocator.fill(settingValue[i].staticValue); } } async applyFieldSettingViaDocumentMapper(settingAlias, settingValue) { const settingFieldLocator = this.page.locator('umb-property[alias="' + settingAlias + '"]'); await (0, test_1.expect)(settingFieldLocator).toBeVisible(); const selectLocator = settingFieldLocator.locator("forms-document-mapper-property-editor select"); await selectLocator.selectOption({ value: settingValue.doctype }); const inputLocator = settingFieldLocator.locator('forms-document-mapper-property-editor input[type = "text"]'); await (0, test_1.expect)(inputLocator.first()).toBeVisible(); const inputLocatorCount = await inputLocator.count(); for (let i = 0; i < inputLocatorCount; i++) { await (0, test_1.expect)(inputLocator.nth(i)).toBeVisible(); await inputLocator.nth(i).fill(settingValue.nameStaticValue); } } async applyFieldSettingViaEmailTemplatePicker(settingAlias, settingValue) { const settingFieldLocator = this.page.locator('umb-property[alias="' + settingAlias + '"]'); await (0, test_1.expect)(settingFieldLocator).toBeVisible(); const buttonLocator = settingFieldLocator.locator("#caret-button"); await buttonLocator.click(); const templateLocator = this.page.locator("#label-button", { hasText: settingValue }); await (0, test_1.expect)(templateLocator).toBeVisible(); await templateLocator.click(); } async applyFieldSettingViaStandardFieldMappingInput(settingAlias, settingValue) { const settingFieldLocator = this.page.locator('umb-property[alias="' + settingAlias + '"]'); await (0, test_1.expect)(settingFieldLocator).toBeVisible(); for (let i = 0; i < settingValue.length; i++) { if (settingValue[i].include) { const includeButtonLocator = settingFieldLocator.locator('div[data-umb-standard-field-mapping-include="' + settingValue[i].alias + '"] #toggle'); await includeButtonLocator.click(); } const keyNameButtonLocator = settingFieldLocator.locator('div[data-umb-standard-field-mapping-key-name="' + settingValue[i].alias + '"] input[type="text"]'); await keyNameButtonLocator.fill(settingValue[0].keyName); } } async setFieldMandatory(message) { await (0, test_1.expect)(this.formFieldMandatory).toBeVisible(); await this.formFieldMandatory.locator("#toggle").click(); await this.page.waitForTimeout(1000); const inputLocator = this.formFieldMandatory.locator(this.formInputTxt); await (0, test_1.expect)(inputLocator).toBeVisible(); await inputLocator.fill(message); } async setFieldValidation(label, message) { await (0, test_1.expect)(this.formFieldRegex).toBeVisible(); const selectLocator = this.formFieldRegex.locator("select"); await selectLocator.selectOption({ label: label }); await this.page.waitForTimeout(1000); const inputLocator = this.formFieldRegex.locator("input"); await (0, test_1.expect)(inputLocator).toBeVisible(); await inputLocator.fill(message); } async clickFormWorkflowConfigureButton() { await this.formWorkflowConfigureBtn.click(); } async clickFormWorkflowEditSubmitButton() { await this.formEditWorkflowModal.locator(this.formSubmitButtonModal).click(); } async clickFormWorkflowConfigureSubmitButton() { await this.formConfigureWorkflowModal.locator(this.formSubmitButtonModal).click(); } async clickFormWorkflowAddButton() { await this.formWorkflowOnSubmitStage.locator(this.formWorkflowAddButtonModal).click({ force: true }); } async selectWorkflowType(workflowType) { this.page.locator('umb-ref-item[title="' + workflowType + '"]').click(); } async fillWorkflowName(workflowName) { await (0, test_1.expect)(this.formWorkflowNameTxt).toBeVisible(); await this.formWorkflowNameTxt.fill(workflowName); } /* * Methods for Prevalue Source. */ async clickQuickCreatePrevalueSourceButton() { await (0, test_1.expect)(this.formMenuItemForPrevalueSource).toBeVisible(); await this.formMenuItemForPrevalueSource.hover(); await this.formMenuItemForPrevalueSource.locator(this.quickCreateNewBtn).click(); } async clickPrevalueSourceTypeButton(type) { const button = this.createNewPrevaluesourceModalBtn.locator("#name", { hasText: type }); await (0, test_1.expect)(button).toBeVisible(); await button.click(); } async clickExpandPrevalueSourceTreeButton() { await this.prevalueSourceExpandBtn.click(); } async goToPrevalueSourceWithName(name) { await this.prevalueSourceTree.locator('uui-menu-item[label="' + name + '"]').click(); } async clickDeletePrevalueSourceButton(name) { const prevalueSource = await this.prevalueSourceTree.locator('uui-menu-item[label="' + name + '"]'); await prevalueSource.locator(this.prevalueSourceDeleteBtn).click(); await this.deleteExactBtn.click(); } async applyCacheOptions(option, timeValue = 0, timeUnit = "") { await (0, test_1.expect)(this.prevalueSourceCacheContainer).toBeVisible(); const optionSelect = this.prevalueSourceCacheContainer.locator('uui-radio[value = "' + option + '"]'); await (0, test_1.expect)(optionSelect).toBeVisible(); await optionSelect.click(); if (option === "time") { const numberInput = this.prevalueSourceCacheContainer.locator("input[type='number']"); await (0, test_1.expect)(numberInput).toBeVisible(); await numberInput.fill(timeValue.toString()); const unitSelect = this.prevalueSourceCacheContainer.locator("select"); await (0, test_1.expect)(unitSelect).toBeVisible(); await unitSelect.selectOption({ value: timeUnit }); } } async applyPrevalueSourceSettingViaNodeSelector(labelText, settingValue) { const container = this.page.locator('umb-property[alias="' + labelText + '"]'); await (0, test_1.expect)(container).toBeVisible(); const rootNode = container.locator('uui-button[label="Specify root node"]'); await (0, test_1.expect)(rootNode).toBeVisible(); await rootNode.click(); await (0, test_1.expect)(this.prevalueSourceOriginModal).toBeVisible(); const value = this.prevalueSourceOriginModal.locator('umb-ref-item[name="' + settingValue + '"]'); await (0, test_1.expect)(value).toBeVisible(); await value.click(); } async checkPrevalueSourceTypeLabel() { await (0, test_1.expect)(this.prevalueSourceTypeLabel).toBeVisible(); } } exports.FormsUiHelper = FormsUiHelper; //# sourceMappingURL=FormsUiHelper.js.map