diff --git a/x-pack/test/cloud_security_posture_functional/page_objects/rule_page.ts b/x-pack/test/cloud_security_posture_functional/page_objects/rule_page.ts index 229afa72854d61..0ba6b032f6de4e 100644 --- a/x-pack/test/cloud_security_posture_functional/page_objects/rule_page.ts +++ b/x-pack/test/cloud_security_posture_functional/page_objects/rule_page.ts @@ -101,7 +101,7 @@ export function RulePagePageProvider({ getService, getPageObjects }: FtrProvider }, clickFilterPopOverOption: async (value: string) => { - const chosenValue = await testSubjects.find('options-filter-popover-item-' + (await value)); + const chosenValue = await testSubjects.find('options-filter-popover-item-' + value); await chosenValue.click(); }, diff --git a/x-pack/test/cloud_security_posture_functional/pages/rules.ts b/x-pack/test/cloud_security_posture_functional/pages/rules.ts index f3960237a9edf6..ebae60da6a8048 100644 --- a/x-pack/test/cloud_security_posture_functional/pages/rules.ts +++ b/x-pack/test/cloud_security_posture_functional/pages/rules.ts @@ -157,7 +157,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { it('Table should only show result that passes both Section and Rule number filter', async () => { await rule.rulePage.clickFilterPopover('section'); - await rule.rulePage.clickFilterPopOverOption('Control Plane Node Configuration Files'); + await rule.rulePage.clickFilterPopOverOption('Control-Plane-Node-Configuration-Files'); await rule.rulePage.clickFilterPopover('section'); await rule.rulePage.clickFilterPopover('ruleNumber'); await rule.rulePage.filterTextInput(RULE_NUMBER_FILTER_SEARCH_FIELD, '1.1.5');