mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-3671] Add automation tests for Form Widgets (#3911)
* [ADF-3617] Fix bugs in Task Details Page controller * [ADF-3617] Fix bugs in Task Page controller * [ADF-3617] Separate in different describes automation tests * [ADF-3671] start working on e2e form tests * [ADF-3671] improved checks for form widgets * [ADF-3671] start adding multiline text widget tsts * [ADF-3671] added test for multiline and some improvements * [ADF-3671] Add e2e tests for Dropdown, Date, Checkbox widgets * [ADF-3671] Add e2e test for radio, number, hyperlink widgets * [ADF-3671] Add automation tests for Form Widgets * [ADF-3671] Update usage of Dropdown Widget * [ADF-3671] Fix fileModel file and rename widget controles * [ADF-3671] Rename Widget Controllers * [ADF-3671] Remove unused imports and fix dynamic table e2e test * [ADF-3671] Fix spell errors * [ADF-3671] Fix people, date time, attach widget * [ADF-3671] Fix Form People widget tests * [ADF-3671] Rebase and remove unused variables
This commit is contained in:
committed by
Eugenio Romano
parent
9599b84a84
commit
ee7af9d797
@@ -16,11 +16,13 @@
|
||||
*/
|
||||
|
||||
import { AppSettingsToggles } from './dialog/appSettingsToggles';
|
||||
import { TabsPage } from '../material/tabsPage';
|
||||
import { element, by, browser, protractor } from 'protractor';
|
||||
import Util = require('../../../util/util');
|
||||
import { element, by, protractor, browser } from 'protractor';
|
||||
import { TabsPage } from '../material/tabsPage';
|
||||
|
||||
export class TaskDetailsPage {
|
||||
|
||||
appSettingsTogglesClass = new AppSettingsToggles();
|
||||
formContent = element(by.css('adf-form'));
|
||||
formNameField = element(by.css('span[data-automation-id*="formName"] span'));
|
||||
assigneeField = element(by.css('span[data-automation-id*="assignee"] span'));
|
||||
@@ -42,6 +44,7 @@ export class TaskDetailsPage {
|
||||
addInvolvedUserButton = element(by.css('button[id="add-people"] span'));
|
||||
emailInvolvedUser = by.xpath('following-sibling::div[@class="people-email ng-star-inserted"]');
|
||||
editActionInvolvedUser = by.xpath('following-sibling::div[@class="people-edit-label ng-star-inserted"]');
|
||||
involvedUserPic = by.xpath('ancestor::div/ancestor::div/preceding-sibling::div//div[@class="adf-people-search-people-pic ng-star-inserted"]');
|
||||
taskDetailsInfoDrawer = element(by.tagName('adf-info-drawer'));
|
||||
taskDetailsSection = element(by.css('div[data-automation-id="adf-tasks-details"]'));
|
||||
taskDetailsEmptySection = element(by.css('div[data-automation-id="adf-tasks-details--empty"]'));
|
||||
@@ -307,7 +310,7 @@ export class TaskDetailsPage {
|
||||
}
|
||||
|
||||
appSettingsToggles() {
|
||||
return new AppSettingsToggles();
|
||||
return this.appSettingsTogglesClass;
|
||||
}
|
||||
|
||||
taskInfoDrawerIsDisplayed() {
|
||||
@@ -361,6 +364,12 @@ export class TaskDetailsPage {
|
||||
return this.peopleTitle.getText();
|
||||
}
|
||||
|
||||
getInvolvedPeopleInitialImage(user) {
|
||||
let pic = this.getRowsUser(user).element(this.involvedUserPic);
|
||||
Util.waitUntilElementIsVisible(pic);
|
||||
return pic.getText();
|
||||
}
|
||||
|
||||
checkTaskDetails() {
|
||||
Util.waitUntilElementIsVisible(this.taskDetailsSection);
|
||||
return this.taskDetailsSection.getText();
|
||||
|
Reference in New Issue
Block a user