From b4919301798d2beef5019738b823710da9efd9df Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 10 Apr 2025 18:23:48 +0200 Subject: [PATCH] [8.16] [Dashboard] Fix page object getPanels method for new grid system (#217812) (#217855) # Backport This will backport the following commits from `main` to `8.16`: - [[Dashboard] Fix page object getPanels method for new grid system (#217812)](https://github.com/elastic/kibana/pull/217812) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) Co-authored-by: Marco Liberati --- test/functional/page_objects/dashboard_page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/page_objects/dashboard_page.ts b/test/functional/page_objects/dashboard_page.ts index f6a3aec2eacd..5198c69b4c7a 100644 --- a/test/functional/page_objects/dashboard_page.ts +++ b/test/functional/page_objects/dashboard_page.ts @@ -684,7 +684,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() {