mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3762] Automated tests for tree view component (#3999)
* Automated tests for tree view component * Finalising the original commit * Adding extra test for files not displaying scenario
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
import Util = require('../../util/util');
|
||||
import TestConfig = require('../../test.config');
|
||||
import { element, by } from 'protractor';
|
||||
import { element, by, browser } from 'protractor';
|
||||
import { ProcessServicesPage } from './process_services/processServicesPage';
|
||||
import { AppListCloudComponent } from './process_cloud/appListCloudComponent';
|
||||
|
||||
@@ -40,6 +40,7 @@ export class NavigationBarPage {
|
||||
headerDataButton = element(by.css('a[data-automation-id="Header Data"]'));
|
||||
menuButton = element(by.css('button[data-automation-id="adf-menu-icon"]'));
|
||||
formButton = element(by.css('a[data-automation-id="Form"]'));
|
||||
treeViewButton = element(by.css('a[data-automation-id="Tree View"]'));
|
||||
|
||||
clickContentServicesButton() {
|
||||
Util.waitUntilElementIsVisible(this.contentServicesButton);
|
||||
@@ -157,8 +158,8 @@ export class NavigationBarPage {
|
||||
return this.formButton.click();
|
||||
};
|
||||
|
||||
checkLogoTooltip(logoTooltip) {
|
||||
let logoTooltip = element(by.css('a[title="' + logoTooltip + '"]'));
|
||||
checkLogoTooltip(logoTooltipTitle) {
|
||||
let logoTooltip = element(by.css('a[title="' + logoTooltipTitle + '"]'));
|
||||
Util.waitUntilElementIsVisible(logoTooltip);
|
||||
}
|
||||
|
||||
@@ -174,4 +175,9 @@ export class NavigationBarPage {
|
||||
checkContentServicesButtonIsDisplayed() {
|
||||
Util.waitUntilElementIsVisible(this.contentServicesButton);
|
||||
}
|
||||
|
||||
clickTreeViewButton() {
|
||||
Util.waitUntilElementIsVisible(this.treeViewButton);
|
||||
this.treeViewButton.click();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user