Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ACA-4307] Move Process task JSON mapping e2e process and task names to ADF resource file #6778

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@

import { FormFields } from '../form-fields';
import { by, element, Locator } from 'protractor';
import { BrowserVisibility } from '../../../utils/public-api';
import { BrowserVisibility, BrowserActions } from '../../../utils/public-api';
import { EditJsonDialog } from '../../../dialog/public-api';

export class DisplayValueWidgetPage {

formFields: FormFields = new FormFields();
labelLocator: Locator = by.css("label[class*='adf-label']");
inputLocator: Locator = by.css('input');
editJsonDialog = new EditJsonDialog();

getFieldLabel(fieldId): Promise<string> {
return this.formFields.getFieldLabel(fieldId, this.labelLocator);
Expand Down Expand Up @@ -51,4 +53,19 @@ export class DisplayValueWidgetPage {
return false;
}
}

async clickOnDisplayJsonValueWidget(fieldId: string) {
const jsonButton = element(by.css(`adf-form-field div[id='field-${fieldId}-container'] button`));
await BrowserActions.click(jsonButton);
await this.editJsonDialog.checkDialogIsDisplayed();
}

async getDisplayJsonValueDialogContent(): Promise<any> {
return JSON.parse(await (<any> this.editJsonDialog.getDialogContent()));
}

async closeDisplayJsonValuedDialog() {
await this.editJsonDialog.clickCloseButton();
await this.editJsonDialog.checkDialogIsNotDisplayed();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@
"candidateusersgroup": "candidateusersgroup",
"candidateUserProcess": "candidateuserprocess",
"outputVariablesMapping": "output-variables-mapping",
"outcomeVisibilityProcess": "outcome-visib-process"
"outcomeVisibilityProcess": "outcome-visib-process",
"restConnectorProcess": "rest-connector-process"
},
"forms": {
"tabVisibilityFields": {
Expand Down Expand Up @@ -181,7 +182,10 @@
}
},
"formWithJsonWidget": {
"name": "form-with-json-widget"
"name": "form-with-json-widget",
"widgets": {
"displayJsonWidgetId": "DisplayJsonWidgetId"
}
},
"formWithAllWidgets": {
"name": "form-with-all-widgets"
Expand Down Expand Up @@ -274,7 +278,8 @@
"candidateUserTask": "candidateUserTask",
"salesUserTask": "salesuser task",
"hrUserTask": "hruser task",
"attachLocalFile": "attach local file"
"attachLocalFile": "attach local file",
"userTaskToShowRestResult": "UserTaskToShowRestResult"
},
"security": [
{
Expand All @@ -288,7 +293,17 @@
"users": ["hruser"]
}
],
"infrastructure": { "connectors": { "restconnector": {} }, "bridges": {} }
"infrastructure": { "connectors": { "restconnector": {} }, "bridges": {} },
"connectors": {
"restConnector": {
"response": {
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": false
}
}
}
},
"SUB_PROCESS_APP": {
"name": "subprocessapp",
Expand Down