Skip to content

Commit e5e72cb

Browse files
committed
update test
1 parent a21f4ab commit e5e72cb

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

packages/compass-e2e-tests/helpers/downloads.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const waitForFileDownload = async (
1515
function () {
1616
return fs.existsSync(filePath);
1717
},
18-
{ timeout: 3000, timeoutMsg: 'file not downloaded yet.' }
18+
{ timeout: 10000, timeoutMsg: 'file not downloaded yet.' }
1919
);
2020

2121
return { fileExists: fs.existsSync(filePath), filePath };

packages/compass-e2e-tests/helpers/selectors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ export const ExportSchemaFormatOptions =
10271027
'[data-testid="export-schema-format-type-box-group"]';
10281028
export const exportSchemaFormatOption = (
10291029
option: 'standardJSON' | 'mongoDBJSON' | 'extendedJSON'
1030-
) => `[data-testid="export-schema-format-${option}-button"]`;
1030+
) => `label[for="export-schema-format-${option}-button"]`;
10311031
export const ExportSchemaOutput = '[data-testid="export-schema-content"]';
10321032
export const ExportSchemaDownloadButton =
10331033
'[data-testid="schema-export-download-button"]';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('Collection schema tab', function () {
121121
await browser.setFeature('enableExportSchema', true);
122122
});
123123

124-
const filename = 'schema-test-numbers-standardJSON.json';
124+
const filename = 'schema-test-numbers-mongoDBJSON.json';
125125

126126
before(() => {
127127
cleanUpDownloadedFile(filename);

packages/compass-schema/src/components/export-schema-modal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ const ExportSchemaModal: React.FunctionComponent<{
206206
</Button>
207207
<Button
208208
variant="primary"
209+
isLoading={exportStatus === 'inprogress'}
209210
loadingIndicator={<SpinLoader />}
210211
disabled={!exportedSchema}
211212
onClick={handleSchemaDownload}

0 commit comments

Comments
 (0)