diff --git a/test/functional/apps/discover/_discover.ts b/test/functional/apps/discover/_discover.ts index 8dc695abc8d45..4704f75f34289 100644 --- a/test/functional/apps/discover/_discover.ts +++ b/test/functional/apps/discover/_discover.ts @@ -310,7 +310,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.discover.clickFieldSort('_score', 'Sort Low-High'); const currentUrlWithScore = await browser.getCurrentUrl(); expect(currentUrlWithScore).to.contain('_score'); - await PageObjects.discover.clickFieldListItemAdd('_score'); + await PageObjects.discover.clickFieldListItemRemove('_score'); const currentUrlWithoutScore = await browser.getCurrentUrl(); expect(currentUrlWithoutScore).not.to.contain('_score'); }); diff --git a/test/functional/page_objects/discover_page.ts b/test/functional/page_objects/discover_page.ts index bb0384b3d8667..c6a87bb99deac 100644 --- a/test/functional/page_objects/discover_page.ts +++ b/test/functional/page_objects/discover_page.ts @@ -357,9 +357,7 @@ export class DiscoverPageObject extends FtrService { const isLegacyDefault = await this.useLegacyTable(); if (isLegacyDefault) { await this.retry.waitFor(`field ${field} to be added to classic table`, async () => { - return await this.testSubjects.exists(`docTableRemoveHeader-${field}`, { - allowHidden: true, - }); + return await this.testSubjects.exists(`docTableHeader-${field}`); }); } else { await this.retry.waitFor(`field ${field} to be added to new table`, async () => {