Dev gmandakini automate actionmenu for rows (#4905)

* removing hte test as iti s duplicated. The same tests exist under e2e/content-services/document-list/document-list-actions.e2e.ts

* C260127 - Move - Destination picker search, test for content highlighted

* C260128 - Move same name file test added

* test name updated

* C260134 - Move Folder with subfolder and file within it, test added

* formatting

* C260135 - Move same name folder - test added

* C260131 - Copy - Destination picker search, search text highlighted in the results in the Copy dialog.

* C260129, C260136 - Tests for Copy same name file and same name folder added

* added tests for Copy and Move actions on no permission folder.

* added tests for Copy and Move actions on no permission folder.
This commit is contained in:
Geeta Mandakini Ayyalasomayajula
2019-07-08 10:26:03 +01:00
committed by Eugenio Romano
parent cf761ba0b2
commit 939277366f
5 changed files with 254 additions and 185 deletions

View File

@@ -324,6 +324,12 @@ export class DataTableComponentPage {
return cell;
}
checkCellByHighlightContent(content) {
const cell = this.rootElement.element(by.cssContainingText(`div[class*='adf-datatable-row'] div[class*='adf-name-location-cell-name'] span.adf-highlight`, content));
BrowserVisibility.waitUntilElementIsVisible(cell);
return cell;
}
clickRowByContent(name) {
const resultElement = this.rootElement.all(by.css(`div[data-automation-id='${name}']`)).first();
BrowserActions.click(resultElement);
@@ -335,6 +341,12 @@ export class DataTableComponentPage {
return this;
}
checkRowContentIsDisabled(content) {
const resultElement = this.rootElement.all(by.css(`div[data-automation-id='${content}'] div.adf-cell-value img[aria-label='disable']`)).first();
BrowserVisibility.waitUntilElementIsVisible(resultElement);
return this;
}
doubleClickRowByContent(name) {
const resultElement = this.rootElement.all(by.css(`div[data-automation-id='${name}']`)).first();
BrowserActions.click(resultElement);