Skip to content

Commit

Permalink
Wait for tenant radio to be selected in flaky SAML integ test (opense…
Browse files Browse the repository at this point in the history
…arch-project#1201) (opensearch-project#1214)

(cherry picked from commit 257325caaeb4810cdac8473f9a98120bda072bfa)

Co-authored-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and cwperks authored Nov 14, 2022
1 parent 81ca648 commit 4faf916
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/jest_integration/saml_auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4faf916

Please sign in to comment.