From 041b5c0e0e18e20befded4a0287d990be72d1129 Mon Sep 17 00:00:00 2001 From: Constance Chen Date: Tue, 9 May 2023 17:36:44 -0700 Subject: [PATCH] Fix FTR tests to account for new EuiPageHeader DOM order --- test/functional/apps/kibana_overview/_page_header.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/apps/kibana_overview/_page_header.ts b/test/functional/apps/kibana_overview/_page_header.ts index 6ecf6d78bc0b5..362b3a97d5ffc 100644 --- a/test/functional/apps/kibana_overview/_page_header.ts +++ b/test/functional/apps/kibana_overview/_page_header.ts @@ -37,7 +37,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const items = await header.findAllByCssSelector('.kbnRedirectCrossAppLinks'); expect(items!.length).to.be(3); - const integrations = await items!.at(0); + const integrations = await items!.at(2); await integrations!.click(); await PageObjects.common.waitUntilUrlIncludes('app/integrations/browse'); }); @@ -61,7 +61,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const header = await find.byCssSelector('.euiPageHeaderContent'); const items = await header.findAllByCssSelector('.kbnRedirectCrossAppLinks'); - const devTools = await items!.at(2); + const devTools = await items!.at(0); await devTools!.click(); await PageObjects.common.waitUntilUrlIncludes('app/dev_tools'); });