-
Notifications
You must be signed in to change notification settings - Fork 258
fix: wait for drop index modal to show up in e2e tests COMPASS-10525 #7910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,10 +10,14 @@ export async function dropIndex( | |
| const indexComponent = browser.$(indexComponentSelector); | ||
| await indexComponent.waitForDisplayed(); | ||
|
|
||
| await browser.hover(indexComponentSelector); | ||
| await browser.clickVisible( | ||
| `${indexComponentSelector} ${Selectors.IndexesTableDropIndexButton}` | ||
| ); | ||
| await browser.waitUntil(async () => { | ||
| await browser.hover(indexComponentSelector); | ||
| await browser.clickVisible( | ||
| `${indexComponentSelector} ${Selectors.IndexesTableDropIndexButton}` | ||
| ); | ||
| // Check if modal opened successfully | ||
| return await browser.isModalOpen(Selectors.DropIndexModal); | ||
| }); | ||
|
Comment on lines
+13
to
+20
|
||
|
|
||
| await browser.waitForOpenModal(Selectors.DropIndexModal); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
browser.waitUntilhere relies on the global default timeout and will likely produce a generic timeout error if the modal never opens, which can make CI debugging harder. Consider passing an explicittimeout(aligned with other UI waits in this repo) and a helpfultimeoutMsgdescribing that we couldn't open the Drop Index modal after clicking the drop button.