diff --git a/x-pack/test/security_solution_endpoint/apps/endpoint/policy_details.ts b/x-pack/test/security_solution_endpoint/apps/endpoint/policy_details.ts index bdfd0d3ac7c5f8..1f1dd4dd192aeb 100644 --- a/x-pack/test/security_solution_endpoint/apps/endpoint/policy_details.ts +++ b/x-pack/test/security_solution_endpoint/apps/endpoint/policy_details.ts @@ -22,7 +22,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { const policyTestResources = getService('policyTestResources'); // Failing: See https://github.com/elastic/kibana/issues/92567 - describe.skip('When on the Endpoint Policy Details Page', function () { + describe('When on the Endpoint Policy Details Page', function () { this.tags(['ciGroup7']); describe('with an invalid policy id', () => { @@ -460,10 +460,8 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await advancedPolicyField.click(); await advancedPolicyField.clearValueWithKeyboard(); - // Since the Save button is on a sticky footer, it first closes out the success toast before saving again - await testSubjects.existOrFail('policyDetailsSuccessMessage'); - // await (await testSubjects.find('ToastExit')).click(); - // await testSubjects.missingOrFail('policyDetailsSuccessMessage'); + // Make sure the toast button closes so the save button on the sticky footer is visible + await testSubjects.waitForHidden('toastCloseButton'); await pageObjects.policy.confirmAndSave(); await testSubjects.existOrFail('policyDetailsSuccessMessage'); diff --git a/x-pack/test/security_solution_endpoint/page_objects/policy_page.ts b/x-pack/test/security_solution_endpoint/page_objects/policy_page.ts index 430dcb260bf56d..f7b42866827393 100644 --- a/x-pack/test/security_solution_endpoint/page_objects/policy_page.ts +++ b/x-pack/test/security_solution_endpoint/page_objects/policy_page.ts @@ -70,10 +70,6 @@ export function EndpointPolicyPageProvider({ getService, getPageObjects }: FtrPr */ async confirmAndSave() { await this.ensureIsOnDetailsPage(); - // await browser.scrollTop(); - await testSubjects.existOrFail('policyDetailsSuccessMessage'); - // await this.findToastExit + click - // await testSubjects.missingOrFail('policyDetailsSuccessMessage'); await (await this.findSaveButton()).click(); await testSubjects.existOrFail('policyDetailsConfirmModal'); await pageObjects.common.clickConfirmOnModal();