Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix Mongo native preview sidebar assertions after default-limit removal (#80395)

Frasere7a84b162555
diff --git a/e2e/test/scenarios/question/notebook-native-preview-sidebar.cy.spec.ts b/e2e/test/scenarios/question/notebook-native-preview-sidebar.cy.spec.ts
index 5699c5afdb8..5e273124334 100644
--- a/e2e/test/scenarios/question/notebook-native-preview-sidebar.cy.spec.ts
+++ b/e2e/test/scenarios/question/notebook-native-preview-sidebar.cy.spec.ts
@@ -267,7 +267,7 @@ describe(
H.NativeEditor.get()
.should("be.visible")
.and("contain", "$project")
- .and("contain", "$limit");
+ .and("not.contain", "$limit");
cy.button("Convert this question to a native query").click();
});
@@ -295,7 +295,7 @@ describe(
H.NativeEditor.get()
.should("be.visible")
.and("contain", "$project")
- .and("contain", "$limit")
+ .and("not.contain", "$limit")
.and("not.contain", "BsonString")
.and("not.contain", "BsonInt32");