diff --git a/packages/compass-e2e-tests/fixtures/listings-large.csv.gz b/packages/compass-e2e-tests/fixtures/listings-large.csv.gz new file mode 100644 index 00000000000..af667dc3442 Binary files /dev/null and b/packages/compass-e2e-tests/fixtures/listings-large.csv.gz differ diff --git a/packages/compass-e2e-tests/fixtures/listings-large.json.gz b/packages/compass-e2e-tests/fixtures/listings-large.json.gz new file mode 100644 index 00000000000..d5905204a98 Binary files /dev/null and b/packages/compass-e2e-tests/fixtures/listings-large.json.gz differ diff --git a/packages/compass-e2e-tests/helpers/selectors.ts b/packages/compass-e2e-tests/helpers/selectors.ts index da07b9a5be4..fc9eb088d73 100644 --- a/packages/compass-e2e-tests/helpers/selectors.ts +++ b/packages/compass-e2e-tests/helpers/selectors.ts @@ -659,7 +659,7 @@ export const ImportSkipAnalyze = '[data-testid="skip-csv-analyze-button"]'; export const ImportAnalyzeError = '[data-testid="import-modal"] [data-testid="analyze-error"]'; export const ImportConfirm = - '[data-testid="import-modal"] [data-testid="import-button"]'; + '[data-testid="import-modal"] [data-testid="import-button"][aria-disabled="false"]'; export const ImportToast = '[data-testid="toast-import-toast"]'; export const ImportToastErrorDetailsBtn = '[data-testid="toast-import-toast"] [data-testid="import-error-details-button"]'; diff --git a/packages/compass-e2e-tests/tests/collection-import.test.ts b/packages/compass-e2e-tests/tests/collection-import.test.ts index 2c3087015f0..fd76d88b85a 100644 --- a/packages/compass-e2e-tests/tests/collection-import.test.ts +++ b/packages/compass-e2e-tests/tests/collection-import.test.ts @@ -1320,8 +1320,14 @@ describe('Collection import', function () { describe('aborting an import', function () { it('aborts an in progress CSV import', async function () { - // 16116 documents. - const csvPath = path.resolve(__dirname, '..', 'fixtures', 'listings.csv'); + // 279712 documents, so this should take a while to import, giving us lots + // of time to disconnect in time. + const csvPath = path.resolve( + __dirname, + '..', + 'fixtures', + 'listings-large.csv' + ); await browser.navigateToCollectionTab( DEFAULT_CONNECTION_NAME_1, @@ -1389,12 +1395,13 @@ describe('Collection import', function () { }); it('aborts an in progress JSON import', async function () { - // 16116 documents. + // 279712 documents, so this should take a while to import, giving us lots + // of time to disconnect in time. const jsonPath = path.resolve( __dirname, '..', 'fixtures', - 'listings.json' + 'listings-large.json' ); await browser.navigateToCollectionTab( @@ -1459,8 +1466,14 @@ describe('Collection import', function () { }); it('aborts when disconnected', async function () { - // 16116 documents. - const csvPath = path.resolve(__dirname, '..', 'fixtures', 'listings.csv'); + // 279712 documents, so this should take a while to import, giving us lots + // of time to disconnect in time. + const csvPath = path.resolve( + __dirname, + '..', + 'fixtures', + 'listings-large.csv' + ); await browser.navigateToCollectionTab( DEFAULT_CONNECTION_NAME_1,