mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
SYNC: chart screenshot
This commit is contained in:
committed by
Diflow
parent
cd7cf63144
commit
eaa60c281e
@@ -488,4 +488,18 @@ describe('Data browser data', () => {
|
||||
cy.testid('DataDeployTab_importIntoDb').click();
|
||||
cy.themeshot('data-replicator');
|
||||
});
|
||||
|
||||
it('Public Knowledge base - show chart', () => {
|
||||
cy.contains('MySql-connection').click();
|
||||
cy.contains('MyChinook').click();
|
||||
cy.testid('WidgetIconPanel_cloud-public').click();
|
||||
cy.testid('public-cloud-file-tag-mysql/folder-MySQL/tag-premium/top-tables-row-count.sql').click();
|
||||
cy.testid('chart-canvas').should($c => expect($c[0].toDataURL()).to.match(/^data:image\/png;base64/));
|
||||
cy.themeshot('public-knowledge-base-tables-sizes');
|
||||
});
|
||||
|
||||
// it('Private cloud - sign in', () => {
|
||||
// cy.testid('WidgetIconPanel_cloudAccount').click();
|
||||
// cy.themeshot('private-cloud-sign-in');
|
||||
// });
|
||||
});
|
||||
|
||||
@@ -42,3 +42,11 @@ beforeEach(() => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Cypress.Screenshot.defaults({
|
||||
// onBeforeScreenshot() {
|
||||
// if (window.Chart) {
|
||||
// Object.values(window.Chart.instances).forEach(c => c.resize());
|
||||
// }
|
||||
// },
|
||||
// });
|
||||
|
||||
1
e2e-tests/env/browse-data/.env
vendored
1
e2e-tests/env/browse-data/.env
vendored
@@ -1,4 +1,5 @@
|
||||
CONNECTIONS=mysql,postgres,mongo,redis
|
||||
ALLOW_DBGATE_PRIVATE_CLOUD=1
|
||||
|
||||
LABEL_mysql=MySql-connection
|
||||
SERVER_mysql=localhost
|
||||
|
||||
Reference in New Issue
Block a user