SYNC: chart test

This commit is contained in:
SPRINX0\prochazka
2025-10-14 12:58:59 +02:00
committed by Diflow
parent f3b65700d7
commit 8f860ad93e
2 changed files with 15 additions and 0 deletions

View File

@@ -109,4 +109,18 @@ describe('Charts', () => {
cy.contains('Compare database');
cy.themeshot('new-object-window');
});
it('Database chat - charts', () => {
cy.contains('MySql-connection').click();
cy.contains('MyChinook').click();
cy.testid('TabsPanel_buttonNewObject').click();
cy.testid('NewObjectModal_databaseChat').click();
cy.wait(1000);
cy.get('body').realType('show me chart of most popular genres');
cy.get('body').realPress('{enter}');
cy.testid('DatabaseChatTab_executeAllQueries', { timeout: 30000 }).click();
cy.wait(5000);
cy.testid('chart-canvas').should($c => expect($c[0].toDataURL()).to.match(/^data:image\/png;base64/));
cy.themeshot('database-chat-chart');
});
});

View File

@@ -49,6 +49,7 @@
<InlineButton
title="Explain error"
inlineBlock
data-testid={`MessageViewRow-explainErrorButton-${index}`}
on:click={e => {
onExplainError(row);
}}><FontIcon icon="img ai" /> Explain</InlineButton