Skip to content

Commit 5ef2fb8

Browse files
authored
fix(e2e): skip more validation details tests (#6829)
1 parent 94a4b72 commit 5ef2fb8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/compass-e2e-tests/tests/collection-import.test.ts

+11
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
skipForWeb,
1111
TEST_COMPASS_WEB,
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';
@@ -527,6 +528,11 @@ describe('Collection import', function () {
527528
});
528529

529530
it('with JSON + abort on error checked, it displays a validation error with details', async function () {
531+
// 4.x doesn't provide validation details
532+
if (serverSatisfies('< 5.0.0')) {
533+
this.skip();
534+
}
535+
530536
const jsonPath = path.resolve(
531537
__dirname,
532538
'..',
@@ -578,6 +584,11 @@ describe('Collection import', function () {
578584
});
579585

580586
it('with CSV + abort on error unchecked, it includes the details in a file', async function () {
587+
// 4.x doesn't provide validation details
588+
if (serverSatisfies('< 5.0.0')) {
589+
this.skip();
590+
}
591+
581592
const filename = 'array-documents.csv';
582593
const csvPath = path.resolve(__dirname, '..', 'fixtures', filename);
583594

0 commit comments

Comments
 (0)