mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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
@@ -126,7 +126,7 @@ export class NavigationBarPage {
|
||||
}
|
||||
|
||||
clickOnSpecificThemeButton(themeName) {
|
||||
let themeElement = element(by.css(`button[data-automation-id="${themeName}"]`));
|
||||
const themeElement = element(by.css(`button[data-automation-id="${themeName}"]`));
|
||||
Util.waitUntilElementIsVisible(themeElement);
|
||||
Util.waitUntilElementIsClickable(themeElement);
|
||||
themeElement.click();
|
||||
@@ -147,7 +147,7 @@ export class NavigationBarPage {
|
||||
}
|
||||
|
||||
chooseLanguage(language) {
|
||||
let buttonLanguage = element(by.xpath(`//adf-language-menu//button[contains(text(), '${language}')]`));
|
||||
const buttonLanguage = element(by.xpath(`//adf-language-menu//button[contains(text(), '${language}')]`));
|
||||
Util.waitUntilElementIsVisible(buttonLanguage);
|
||||
buttonLanguage.click();
|
||||
}
|
||||
@@ -182,12 +182,12 @@ export class NavigationBarPage {
|
||||
}
|
||||
|
||||
checkToolbarColor(color) {
|
||||
let toolbarColor = element(by.css(`mat-toolbar[class*="mat-${color}"]`));
|
||||
const toolbarColor = element(by.css(`mat-toolbar[class*="mat-${color}"]`));
|
||||
return Util.waitUntilElementIsVisible(toolbarColor);
|
||||
}
|
||||
|
||||
clickAppLogo(logoTitle) {
|
||||
let appLogo = element(by.css('a[title="' + logoTitle + '"]'));
|
||||
const appLogo = element(by.css('a[title="' + logoTitle + '"]'));
|
||||
Util.waitUntilElementIsVisible(appLogo);
|
||||
appLogo.click();
|
||||
}
|
||||
@@ -205,7 +205,7 @@ export class NavigationBarPage {
|
||||
}
|
||||
|
||||
checkLogoTooltip(logoTooltipTitle) {
|
||||
let logoTooltip = element(by.css('a[title="' + logoTooltipTitle + '"]'));
|
||||
const logoTooltip = element(by.css('a[title="' + logoTooltipTitle + '"]'));
|
||||
Util.waitUntilElementIsVisible(logoTooltip);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user