C307984 automated (#4657)

This commit is contained in:
gmandakini
2019-04-26 17:22:22 +01:00
committed by Eugenio Romano
parent 934386fb16
commit f24245aa23
4 changed files with 46 additions and 1 deletions
@@ -45,6 +45,7 @@ export class DataTablePage {
replaceRowsElement = element(by.xpath(`//span[contains(text(),'Replace rows')]/..`));
replaceColumnsElement = element(by.xpath(`//span[contains(text(),'Replace columns')]/..`));
createdOnColumn = element(by.css(`div[data-automation-id='auto_id_createdOn']`));
idColumnHeader = element(by.css(`div[data-automation-id='auto_id_id']`));
pasteClipboardInput = element(by.css(`input[data-automation-id='paste clipboard input']`));
constructor(data?) {
@@ -167,6 +168,14 @@ export class DataTablePage {
return this.dataTable.mouseOverElement(this.dataTable.getCellByRowNumberAndColumnName(rowNumber - 1, this.columns.json));
}
getDropTargetIdColumnCell(rowNumber) {
return this.dataTable.getCellByRowNumberAndColumnName(rowNumber - 1, this.columns.id);
}
getDropTargetIdColumnHeader() {
return this.idColumnHeader;
}
clickOnIdColumn(name) {
return this.dataTable.clickColumn(this.columns.id, name);
}
+8
View File
@@ -29,6 +29,7 @@ export class NavigationBarPage {
dataTableButton = element(by.css('a[data-automation-id="Datatable"]'));
dataTableNestedButton = element(by.css('button[data-automation-id="Datatable"]'));
dataTableCopyContentButton = element(by.css('button[data-automation-id="Copy Content"]'));
dataTableDragAndDropButton = element(by.css('button[data-automation-id="Drag and Drop"]'));
taskListButton = element(by.css("a[data-automation-id='Task List']"));
configEditorButton = element(by.css('a[data-automation-id="Configuration Editor"]'));
processServicesButton = element(by.css('a[data-automation-id="Process Services"]'));
@@ -74,6 +75,13 @@ export class NavigationBarPage {
this.dataTableCopyContentButton.click();
}
navigateToDragAndDropDatatable() {
BrowserVisibility.waitUntilElementIsVisible(this.dataTableButton);
this.dataTableButton.click();
BrowserVisibility.waitUntilElementIsVisible(this.dataTableDragAndDropButton);
this.dataTableDragAndDropButton.click();
}
clickContentServicesButton() {
BrowserVisibility.waitUntilElementIsVisible(this.contentServicesButton);
this.contentServicesButton.click();