mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
e2e test components refactoring (#76)
This commit is contained in:
committed by
Cilibiu Bogdan
parent
8df9aab5c0
commit
56d62276d7
@@ -46,10 +46,7 @@ export class Sidenav extends Component {
|
||||
}
|
||||
|
||||
isActiveByLabel(label: string): promise.Promise<boolean> {
|
||||
return this
|
||||
.getLinkByLabel(label)
|
||||
.getWebElement()
|
||||
.then(element => element.getAttribute('class'))
|
||||
return this.getLinkByLabel(label).getAttribute('class')
|
||||
.then(className => className.includes(Sidenav.selectors.activeLink.replace('.', '')));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user