mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Dashboard] Fix page object getPanels method for new grid system (#217812)
## Summary @umbopepato made me notice that this method was always returning an empty list of element. That was due to the selector used was targeting the old grid system. This PR fixes that using the right selector for the new grid system. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
bc1124118c
commit
ff0ba15eaa
1 changed files with 1 additions and 1 deletions
|
@ -685,7 +685,7 @@ export class DashboardPageObject extends FtrService {
|
|||
}
|
||||
|
||||
public async getPanels() {
|
||||
return await this.find.allByCssSelector('.react-grid-item'); // These are gridster-defined elements and classes
|
||||
return await this.testSubjects.findAll('dashboardPanel');
|
||||
}
|
||||
|
||||
public async getPanelDimensions() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue