mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
enable prefer-const rule for tslint, fix issues (#4409)
* enable prefer-const rule for tslint, fix issues * Update content-node-selector.component.spec.ts * Update content-node-selector.component.spec.ts * fix const * fix lint issues * update tests * update tests * update tests * fix code * fix page class
This commit is contained in:
committed by
Eugenio Romano
parent
26c5982a1a
commit
a7a48e8b2b
@@ -50,18 +50,18 @@ export class HeaderPage {
|
||||
}
|
||||
|
||||
clickShowMenuButton() {
|
||||
let checkBox = element.all(by.css('mat-checkbox'));
|
||||
const checkBox = element.all(by.css('mat-checkbox'));
|
||||
Util.waitUntilElementIsVisible(checkBox);
|
||||
return checkBox.get(0).click();
|
||||
}
|
||||
|
||||
changeHeaderColor(color) {
|
||||
let headerColor = element(by.css('option[value="' + color + '"]'));
|
||||
const headerColor = element(by.css('option[value="' + color + '"]'));
|
||||
return headerColor.click();
|
||||
}
|
||||
|
||||
checkAppTitle(name) {
|
||||
let title = element(by.cssContainingText('.adf-app-title', name));
|
||||
const title = element(by.cssContainingText('.adf-app-title', name));
|
||||
return Util.waitUntilElementIsVisible(title);
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ export class HeaderPage {
|
||||
}
|
||||
|
||||
checkIconIsDisplayed(url) {
|
||||
let icon = element(by.css('img[src="' + url + '"]'));
|
||||
const icon = element(by.css('img[src="' + url + '"]'));
|
||||
Util.waitUntilElementIsVisible(icon);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user