Skip to content

Commit d4ff37f

Browse files
authored
fix(e2e): wait for the footer to update with the error (#7007)
wait for the footer to update with the error
1 parent e63316c commit d4ff37f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/compass-e2e-tests/tests/in-use-encryption.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,9 +735,12 @@ describe('CSFLE / QE', function () {
735735
await button.click();
736736

737737
const footer = copiedDocument.$(Selectors.DocumentFooterMessage);
738-
expect(await footer.getText()).to.equal(
739-
'Update blocked as it could unintentionally write unencrypted data due to a missing or incomplete schema.'
740-
);
738+
await browser.waitUntil(async () => {
739+
return (
740+
(await footer.getText()) ===
741+
'Update blocked as it could unintentionally write unencrypted data due to a missing or incomplete schema.'
742+
);
743+
});
741744
});
742745

743746
it('shows incomplete schema for cloned document banner', async function () {

0 commit comments

Comments
 (0)