[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:
Cilibiu Bogdan
2018-07-26 22:39:19 +03:00
committed by Denys Vuika
parent 34888e2b0f
commit 617f80c9fd
5 changed files with 40 additions and 22 deletions

View File

@@ -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();
}