mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 00:56:01 +00:00
test fix
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
1
e2e-tests/screenshots/dummy.txt
Normal file
1
e2e-tests/screenshots/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
Folder with screenshots
|
||||
Reference in New Issue
Block a user