Skip to content

Commit 94a4b72

Browse files
authored
chore: skip errInfo tests on server version < 5 (#6824)
1 parent 6d40b87 commit 94a4b72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/compass-e2e-tests/tests/collection-documents-tab.test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
TEST_COMPASS_WEB,
1111
skipForWeb,
1212
DEFAULT_CONNECTION_NAME_1,
13+
serverSatisfies,
1314
} from '../helpers/compass';
1415
import type { Compass } from '../helpers/compass';
1516
import * as Selectors from '../helpers/selectors';
@@ -691,6 +692,9 @@ FindIterable<Document> result = collection.find(filter);`);
691692
const REQUIRE_PHONE_VALIDATOR =
692693
'{ $jsonSchema: { bsonType: "object", required: [ "phone" ] } }';
693694
beforeEach(async function () {
695+
if (serverSatisfies('< 5.0.0')) {
696+
return this.skip();
697+
}
694698
await browser.setValidation({
695699
connectionName: DEFAULT_CONNECTION_NAME_1,
696700
database: 'test',

0 commit comments

Comments
 (0)