mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 02:56:00 +00:00
SYNC: fixed import CSV test
This commit is contained in:
committed by
Diflow
parent
43b760b4bf
commit
d4469f3a2d
@@ -203,13 +203,14 @@ describe('Import CSV', () => {
|
||||
cy.contains('Import').click();
|
||||
|
||||
cy.get('input[type=file]').selectFile('cypress/fixtures/customers-20.csv', { force: true });
|
||||
cy.contains('customers-20');
|
||||
cy.testid('ImportExportConfigurator_tableMappingSection').contains('customers-20');
|
||||
cy.testid('ImportExportTab_preview_content').contains('50ddd99fAdF48B3').should('be.visible');
|
||||
|
||||
cy.testid('ImportExportTab_executeButton').click();
|
||||
cy.contains('20 rows written').should('be.visible');
|
||||
cy.testid('ImportExportConfigurator_tableMappingSection').contains('20 rows written').should('be.visible');
|
||||
|
||||
cy.testid('SqlObjectList_refreshButton').click();
|
||||
cy.contains('Refresh DB structure (incremental)').click();
|
||||
cy.testid('SqlObjectList_container').contains('customers-20').click();
|
||||
cy.contains('Rows: 20').should('be.visible');
|
||||
|
||||
|
||||
@@ -211,8 +211,11 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="m-2">
|
||||
<div class="title"><FontIcon icon="icon tables" /> {_t('importExport.mapSourceTablesFiles', { defaultMessage: "Map source tables/files" })}</div>
|
||||
<div class="m-2" data-testid="ImportExportConfigurator_tableMappingSection">
|
||||
<div class="title">
|
||||
<FontIcon icon="icon tables" />
|
||||
{_t('importExport.mapSourceTablesFiles', { defaultMessage: 'Map source tables/files' })}
|
||||
</div>
|
||||
|
||||
{#key targetEditKey}
|
||||
{#key progressHolder}
|
||||
@@ -221,34 +224,34 @@
|
||||
columns={[
|
||||
{
|
||||
fieldName: 'source',
|
||||
header: _t('importExport.source', { defaultMessage: "Source" }),
|
||||
header: _t('importExport.source', { defaultMessage: 'Source' }),
|
||||
component: SourceName,
|
||||
getProps: row => ({ name: row }),
|
||||
},
|
||||
{
|
||||
fieldName: 'action',
|
||||
header: _t('importExport.action', { defaultMessage: "Action" }),
|
||||
header: _t('importExport.action', { defaultMessage: 'Action' }),
|
||||
component: SourceAction,
|
||||
getProps: row => ({ name: row, targetDbinfo }),
|
||||
},
|
||||
{
|
||||
fieldName: 'target',
|
||||
header: _t('importExport.target', { defaultMessage: "Target" }),
|
||||
header: _t('importExport.target', { defaultMessage: 'Target' }),
|
||||
slot: 1,
|
||||
},
|
||||
supportsPreview && {
|
||||
fieldName: 'preview',
|
||||
header: _t('importExport.preview', { defaultMessage: "Preview" }),
|
||||
header: _t('importExport.preview', { defaultMessage: 'Preview' }),
|
||||
slot: 0,
|
||||
},
|
||||
!!progressHolder && {
|
||||
fieldName: 'status',
|
||||
header: _t('importExport.status', { defaultMessage: "Status" }),
|
||||
header: _t('importExport.status', { defaultMessage: 'Status' }),
|
||||
slot: 3,
|
||||
},
|
||||
{
|
||||
fieldName: 'columns',
|
||||
header: _t('importExport.columns', { defaultMessage: "Columns" }),
|
||||
header: _t('importExport.columns', { defaultMessage: 'Columns' }),
|
||||
slot: 2,
|
||||
},
|
||||
]}
|
||||
|
||||
Reference in New Issue
Block a user