This commit is contained in:
SPRINX0\prochazka
2025-01-30 08:20:41 +01:00
parent 93dc48c22c
commit 56c86bde30
6 changed files with 19 additions and 5 deletions

View File

@@ -45,7 +45,9 @@ module.exports = defineConfig({
});
on('after:screenshot', details => {
fs.renameSync(details.path, path.resolve(__dirname, `screenshots/${details.name}.png`));
if (details.name) {
fs.renameSync(details.path, path.resolve(__dirname, `screenshots/${details.name}.png`));
}
});
// on('task', {
// renameFile({ from, to }) {

View File

@@ -171,7 +171,7 @@ describe('Data browser data', () => {
cy.themeshot('joinwizard');
});
it.only('Mongo JSON data view', () => {
it('Mongo JSON data view', () => {
cy.contains('Mongo-connection').click();
cy.contains('MgChinook').click();
cy.contains('Customer').click();
@@ -187,4 +187,14 @@ describe('Data browser data', () => {
cy.contains('Country: "Brazil"');
cy.themeshot('mongoquery');
});
it('SQL preview', () => {
cy.contains('MySql-connection').click();
cy.contains('MyChinook').click();
cy.contains('Customer').rightclick();
cy.contains('Show SQL').click();
// index should be part of create script
cy.contains('CREATE INDEX `IFK_CustomerSupportRepId`');
cy.themeshot('sqlpreview');
});
});

View File

@@ -0,0 +1 @@
Folder with screenshots