mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
SYNC: database chat test
This commit is contained in:
@@ -303,7 +303,8 @@ describe('Data browser data', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('Plugin tab', () => {
|
it('Plugin tab', () => {
|
||||||
cy.testid('WidgetIconPanel_plugins').click();
|
cy.testid('WidgetIconPanel_settings').click();
|
||||||
|
cy.contains('Manage plugins').click();
|
||||||
cy.contains('dbgate-plugin-theme-total-white').click();
|
cy.contains('dbgate-plugin-theme-total-white').click();
|
||||||
// text from plugin markdown
|
// text from plugin markdown
|
||||||
cy.contains('Total white theme');
|
cy.contains('Total white theme');
|
||||||
@@ -380,20 +381,17 @@ describe('Data browser data', () => {
|
|||||||
cy.themeshot('compare-database-settings');
|
cy.themeshot('compare-database-settings');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Query editor - AI assistant', () => {
|
it.only('Database chat', () => {
|
||||||
cy.contains('MySql-connection').click();
|
cy.contains('MySql-connection').click();
|
||||||
cy.contains('MyChinook').click();
|
cy.contains('MyChinook').click();
|
||||||
cy.testid('TabsPanel_buttonNewObject').click();
|
cy.testid('TabsPanel_buttonNewObject').click();
|
||||||
cy.testid('NewObjectModal_query').click();
|
cy.testid('NewObjectModal_databaseChat').click();
|
||||||
cy.testid('QueryTab_switchAiAssistantButton').click();
|
cy.wait(1000);
|
||||||
cy.testid('QueryAiAssistant_allowSendToAiServiceButton').click();
|
cy.get('body').realType('find most popular artist');
|
||||||
cy.testid('ConfirmModal_okButton').click();
|
cy.get('body').realPress('{enter}');
|
||||||
cy.testid('QueryAiAssistant_promptInput').type('album names');
|
cy.testid('DatabaseChatTab_executeThisQuery', { timeout: 20000 }).click();
|
||||||
cy.testid('QueryAiAssistant_queryFromQuestionButton').click();
|
cy.contains('Iron Maiden');
|
||||||
cy.contains('Use this', { timeout: 10000 }).click();
|
cy.themeshot('database-chat');
|
||||||
cy.testid('QueryTab_executeButton').click();
|
|
||||||
cy.contains('Balls to the Wall');
|
|
||||||
cy.themeshot('ai-assistant');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Modify data', () => {
|
it('Modify data', () => {
|
||||||
|
|||||||
@@ -113,6 +113,7 @@
|
|||||||
command: 'database.chat',
|
command: 'database.chat',
|
||||||
isProFeature: true,
|
isProFeature: true,
|
||||||
disabledMessage: 'Database chat is not available for current database',
|
disabledMessage: 'Database chat is not available for current database',
|
||||||
|
testid: 'NewObjectModal_databaseChat',
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user