mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Use findTestSubject
This commit is contained in:
parent
345421bd63
commit
3a2f3fc9eb
1 changed files with 2 additions and 3 deletions
|
@ -148,7 +148,7 @@ export default class HeaderPage {
|
|||
try {
|
||||
await this.isGlobalLoadingIndicatorVisible();
|
||||
} catch (exception) {
|
||||
if (exception.name === 'NoSuchElement') {
|
||||
if (exception.name === 'ElementNotVisible') {
|
||||
// selenium might just have been too slow to catch it
|
||||
} else {
|
||||
throw exception;
|
||||
|
@ -158,8 +158,7 @@ export default class HeaderPage {
|
|||
}
|
||||
|
||||
isGlobalLoadingIndicatorVisible() {
|
||||
return this.remote.setFindTimeout(defaultFindTimeout)
|
||||
.findByCssSelector('[data-test-subj="globalLoadingIndicator"]:not(.ng-hide)');
|
||||
return PageObjects.common.findTestSubject('globalLoadingIndicator');
|
||||
}
|
||||
|
||||
isGlobalLoadingIndicatorHidden() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue