mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
SYNC: try to fix test
This commit is contained in:
@@ -210,7 +210,8 @@ describe('Import CSV', () => {
|
|||||||
cy.testid('ImportExportConfigurator_tableMappingSection').contains('20 rows written').should('be.visible');
|
cy.testid('ImportExportConfigurator_tableMappingSection').contains('20 rows written').should('be.visible');
|
||||||
|
|
||||||
cy.testid('SqlObjectList_refreshButton').click();
|
cy.testid('SqlObjectList_refreshButton').click();
|
||||||
cy.contains('Refresh DB structure (incremental)').click();
|
cy.testid('DatabasStatusMenu_refreshFull').click();
|
||||||
|
// cy.contains('Refresh DB structure (incremental)').click();
|
||||||
cy.testid('SqlObjectList_container').contains('customers-20').click();
|
cy.testid('SqlObjectList_container').contains('customers-20').click();
|
||||||
cy.contains('Rows: 20').should('be.visible');
|
cy.contains('Rows: 20').should('be.visible');
|
||||||
|
|
||||||
|
|||||||
@@ -164,7 +164,12 @@
|
|||||||
changeActiveSubmenu();
|
changeActiveSubmenu();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<a on:click={e => handleClick(e, item)} class:disabled={item.disabled} class:bold={item.isBold}>
|
<a
|
||||||
|
on:click={e => handleClick(e, item)}
|
||||||
|
class:disabled={item.disabled}
|
||||||
|
class:bold={item.isBold}
|
||||||
|
data-testid={item.testid}
|
||||||
|
>
|
||||||
<span>
|
<span>
|
||||||
{#if item.switchValue && item.switchStoreGetter}
|
{#if item.switchValue && item.switchStoreGetter}
|
||||||
{#key switchIndex}
|
{#key switchIndex}
|
||||||
|
|||||||
@@ -166,6 +166,7 @@ export function getDatabasStatusMenu(dbid, driver = null) {
|
|||||||
apiCall('database-connections/sync-model', dbid);
|
apiCall('database-connections/sync-model', dbid);
|
||||||
callSchemalListChanged();
|
callSchemalListChanged();
|
||||||
},
|
},
|
||||||
|
testid: 'DatabasStatusMenu_refreshIncremental',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: driver?.supportsIncrementalAnalysis
|
text: driver?.supportsIncrementalAnalysis
|
||||||
@@ -175,6 +176,7 @@ export function getDatabasStatusMenu(dbid, driver = null) {
|
|||||||
apiCall('database-connections/sync-model', { ...dbid, isFullRefresh: true });
|
apiCall('database-connections/sync-model', { ...dbid, isFullRefresh: true });
|
||||||
callSchemalListChanged();
|
callSchemalListChanged();
|
||||||
},
|
},
|
||||||
|
testid: 'DatabasStatusMenu_refreshFull',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: _t('command.database.reopenConnection', { defaultMessage: 'Reopen connection' }),
|
text: _t('command.database.reopenConnection', { defaultMessage: 'Reopen connection' }),
|
||||||
@@ -182,6 +184,7 @@ export function getDatabasStatusMenu(dbid, driver = null) {
|
|||||||
apiCall('database-connections/refresh', dbid);
|
apiCall('database-connections/refresh', dbid);
|
||||||
callSchemalListChanged();
|
callSchemalListChanged();
|
||||||
},
|
},
|
||||||
|
testid: 'DatabasStatusMenu_reopenConnection',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: _t('command.database.disconnect', { defaultMessage: 'Disconnect' }),
|
text: _t('command.database.disconnect', { defaultMessage: 'Disconnect' }),
|
||||||
@@ -190,6 +193,7 @@ export function getDatabasStatusMenu(dbid, driver = null) {
|
|||||||
if (electron) apiCall('database-connections/disconnect', dbid);
|
if (electron) apiCall('database-connections/disconnect', dbid);
|
||||||
switchCurrentDatabase(null);
|
switchCurrentDatabase(null);
|
||||||
},
|
},
|
||||||
|
testid: 'DatabasStatusMenu_disconnect',
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user