Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/compass-e2e-tests/tests/collection-import.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
skipForWeb,
TEST_COMPASS_WEB,
DEFAULT_CONNECTION_NAME_1,
serverSatisfies,
} from '../helpers/compass';
import type { Compass } from '../helpers/compass';
import * as Selectors from '../helpers/selectors';
Expand Down Expand Up @@ -527,6 +528,11 @@ describe('Collection import', function () {
});

it('with JSON + abort on error checked, it displays a validation error with details', async function () {
// 4.x doesn't provide validation details
if (serverSatisfies('< 5.0.0')) {
this.skip();
}

const jsonPath = path.resolve(
__dirname,
'..',
Expand Down Expand Up @@ -578,6 +584,11 @@ describe('Collection import', function () {
});

it('with CSV + abort on error unchecked, it includes the details in a file', async function () {
// 4.x doesn't provide validation details
if (serverSatisfies('< 5.0.0')) {
this.skip();
}

const filename = 'array-documents.csv';
const csvPath = path.resolve(__dirname, '..', 'fixtures', filename);

Expand Down
Loading