[ADF-4390]Added copyContent datatable cell tests (#4614)

* Modified data-table page on demo-shell to make copyClipboard possible to test

* Add a new page in demo-shell.
Add copyContent automated tests.
This commit is contained in:
cristinaj
2019-04-17 13:10:36 +03:00
committed by Eugenio Romano
parent 550c0006c9
commit bcdfcee397
11 changed files with 421 additions and 31 deletions

View File

@@ -27,6 +27,7 @@ export class NavigationBarPage {
contentServicesButton = element(by.css('a[data-automation-id="Content Services"]'));
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"]'));
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"]'));
@@ -59,6 +60,13 @@ export class NavigationBarPage {
this.dataTableNestedButton.click();
}
navigateToCopyContentDatatable() {
BrowserVisibility.waitUntilElementIsVisible(this.dataTableButton);
this.dataTableButton.click();
BrowserVisibility.waitUntilElementIsVisible(this.dataTableCopyContentButton);
this.dataTableCopyContentButton.click();
}
clickContentServicesButton() {
BrowserVisibility.waitUntilElementIsVisible(this.contentServicesButton);
this.contentServicesButton.click();