Skip to content

Commit a1c61e5

Browse files
authored
chore(e2e): check the new readonly filter in e2e tests COMPASS-7488 (#5161)
check the new readonly filter in e2e tests
1 parent d6f3df0 commit a1c61e5

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

packages/compass-e2e-tests/tests/collection-bulk-delete.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ describe('Bulk Delete', () => {
4545
await browser.clickVisible(Selectors.OpenBulkDeleteButton);
4646
await browser.$(Selectors.BulkDeleteModal).waitForDisplayed();
4747

48+
// Make sure the query is shown in the modal.
49+
expect(
50+
await browser.$(Selectors.BulkDeleteModalReadonlyFilter).getText()
51+
).to.equal('{ i: 5 }');
52+
4853
// Check that it will update the expected number of documents
4954
expect(await browser.$(Selectors.BulkDeleteModalTitle).getText()).to.equal(
5055
'Delete 1 document'

packages/compass-e2e-tests/tests/collection-bulk-update.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ describe('Bulk Update', () => {
4545
await browser.clickVisible(Selectors.OpenBulkUpdateButton);
4646
await browser.$(Selectors.BulkUpdateModal).waitForDisplayed();
4747

48-
// TODO(COMPASS-7448): Make sure the query is shown in the modal.
48+
// Make sure the query is shown in the modal.
49+
expect(
50+
await browser.$(Selectors.BulkUpdateReadonlyFilter).getText()
51+
).to.equal('{ i: 5 }');
4952

5053
// Check that it will update the expected number of documents
5154
expect(await browser.$(Selectors.BulkUpdateTitle).getText()).to.equal(
@@ -166,7 +169,10 @@ describe('Bulk Update', () => {
166169
// The modal should open
167170
await browser.$(Selectors.BulkUpdateModal).waitForDisplayed();
168171

169-
// TODO(COMPASS-7448): Make sure the query is shown in the modal.
172+
// Make sure the query is shown in the modal.
173+
expect(
174+
await browser.$(Selectors.BulkUpdateReadonlyFilter).getText()
175+
).to.equal('{ i: { $gt: 5 } }');
170176

171177
// Check that the modal starts with the expected update text
172178
expect(await browser.getCodemirrorEditorText(Selectors.BulkUpdateUpdate)).to

0 commit comments

Comments
 (0)