diff --git a/packages/compass-e2e-tests/tests/collection-indexes-tab.test.ts b/packages/compass-e2e-tests/tests/collection-indexes-tab.test.ts index 6ad4d9fd8a4..7552d67e694 100644 --- a/packages/compass-e2e-tests/tests/collection-indexes-tab.test.ts +++ b/packages/compass-e2e-tests/tests/collection-indexes-tab.test.ts @@ -91,7 +91,11 @@ describe('Collection indexes tab', function () { Selectors.IndexFieldType }`; const indexFieldTypeElement = browser.$(indexFieldTypeSelector); - expect(await indexFieldTypeElement.getText()).to.equal('WILDCARD'); + // TODO(COMPASS-8335):We can remove the waitUntil once in-progress indexes type is known + await browser.waitUntil(async function () { + const text = await indexFieldTypeElement.getText(); + return text === 'WILDCARD'; + }); await browser.dropIndex(indexName, 'drop-index-modal-wildcard.png'); });