mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-1595] Location link - reduce HTTP requests for tooltip (#535)
* get node tooltip info on hover * refactore * remove nodeLocation private attribute * e2e - added datatable method for async tooltips * fix failing tests * lint * lint * removed manual unsubscribe
This commit is contained in:
committed by
Denys Vuika
parent
34888e2b0f
commit
617f80c9fd
@@ -204,6 +204,18 @@ export class DataTable extends Component {
|
||||
return this.getItemLocation(name).$('a').getAttribute('title');
|
||||
}
|
||||
|
||||
getItemLocationTileAttr(name: string) {
|
||||
const location = this.getItemLocation(name).$('a');
|
||||
const condition = () => location.getAttribute('title').then((value) => value && value.length > 0);
|
||||
|
||||
browser.actions()
|
||||
.mouseMove(location)
|
||||
.perform();
|
||||
|
||||
browser.wait(condition, BROWSER_WAIT_TIMEOUT);
|
||||
return location.getAttribute('title');
|
||||
}
|
||||
|
||||
clickItemLocation(name: string) {
|
||||
return this.getItemLocation(name).click();
|
||||
}
|
||||
|
Reference in New Issue
Block a user