diff --git a/test/jest_integration/saml_auth.test.ts b/test/jest_integration/saml_auth.test.ts index 53d2a951e7..fe105ecbd1 100644 --- a/test/jest_integration/saml_auth.test.ts +++ b/test/jest_integration/saml_auth.test.ts @@ -302,6 +302,8 @@ describe('start OpenSearch Dashboards server', () => { await driver.executeScript('arguments[0].scrollIntoView(true);', radio); await driver.executeScript('arguments[0].click();', radio); + await driver.wait(until.elementIsSelected(radio)); + await driver.findElement(By.xpath('//button[@data-test-subj="confirm"]')).click(); await driver.wait(until.elementsLocated(By.xpath(userIconBtnXPath)), 10000);