mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 22:36:01 +00:00
SYNC: chart test
This commit is contained in:
committed by
Diflow
parent
f3b65700d7
commit
8f860ad93e
@@ -109,4 +109,18 @@ describe('Charts', () => {
|
|||||||
cy.contains('Compare database');
|
cy.contains('Compare database');
|
||||||
cy.themeshot('new-object-window');
|
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');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
<InlineButton
|
<InlineButton
|
||||||
title="Explain error"
|
title="Explain error"
|
||||||
inlineBlock
|
inlineBlock
|
||||||
|
data-testid={`MessageViewRow-explainErrorButton-${index}`}
|
||||||
on:click={e => {
|
on:click={e => {
|
||||||
onExplainError(row);
|
onExplainError(row);
|
||||||
}}><FontIcon icon="img ai" /> Explain</InlineButton
|
}}><FontIcon icon="img ai" /> Explain</InlineButton
|
||||||
|
|||||||
Reference in New Issue
Block a user