From c717f8f2a5b11af74454cdf62ed36b8309312d5a Mon Sep 17 00:00:00 2001 From: Candace Park Date: Mon, 1 Mar 2021 12:49:10 -0500 Subject: [PATCH] close toast button quickly --- .../security_solution_endpoint/apps/endpoint/policy_details.ts | 1 + 1 file changed, 1 insertion(+) 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 1f1dd4dd192aeb..28e1c469c03e67 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 @@ -461,6 +461,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await advancedPolicyField.clearValueWithKeyboard(); // Make sure the toast button closes so the save button on the sticky footer is visible + await (await testSubjects.find('toastCloseButton')).click(); await testSubjects.waitForHidden('toastCloseButton'); await pageObjects.policy.confirmAndSave();