diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_form/rule_edit.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_form/rule_edit.tsx index 3f1c050fb7e25..0aebaaaa29882 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_form/rule_edit.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_form/rule_edit.tsx @@ -213,7 +213,7 @@ export const RuleEdit = ({ aria-labelledby="flyoutRuleEditTitle" size="m" maxWidth={620} - ownFocus={false} + ownFocus > diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout.ts b/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout.ts index 3cceb01b54998..30ece977d1641 100644 --- a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout.ts +++ b/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout.ts @@ -82,18 +82,11 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { } describe('create alert', function () { - before(async () => { + beforeEach(async () => { await pageObjects.common.navigateToApp('triggersActions'); await testSubjects.click('rulesTab'); }); - afterEach(async () => { - // Reset the Rules tab without reloading the entire page - // This is safer than trying to close the alert flyout, which may or may not be open at the end of a test - await testSubjects.click('logsTab'); - await testSubjects.click('rulesTab'); - }); - it('should delete the right action when the same action has been added twice', async () => { // create a new rule const ruleName = generateUniqueKey();