mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 16:53:58 +00:00
test fix
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -32,3 +32,4 @@ packages/api/src/packagedPluginsContent.js
|
|||||||
.VSCodeCounter
|
.VSCodeCounter
|
||||||
|
|
||||||
packages/web/public/*.html
|
packages/web/public/*.html
|
||||||
|
e2e-tests/screenshots/*.png
|
||||||
@@ -45,7 +45,9 @@ module.exports = defineConfig({
|
|||||||
});
|
});
|
||||||
|
|
||||||
on('after:screenshot', details => {
|
on('after:screenshot', details => {
|
||||||
|
if (details.name) {
|
||||||
fs.renameSync(details.path, path.resolve(__dirname, `screenshots/${details.name}.png`));
|
fs.renameSync(details.path, path.resolve(__dirname, `screenshots/${details.name}.png`));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// on('task', {
|
// on('task', {
|
||||||
// renameFile({ from, to }) {
|
// renameFile({ from, to }) {
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ describe('Data browser data', () => {
|
|||||||
cy.themeshot('joinwizard');
|
cy.themeshot('joinwizard');
|
||||||
});
|
});
|
||||||
|
|
||||||
it.only('Mongo JSON data view', () => {
|
it('Mongo JSON data view', () => {
|
||||||
cy.contains('Mongo-connection').click();
|
cy.contains('Mongo-connection').click();
|
||||||
cy.contains('MgChinook').click();
|
cy.contains('MgChinook').click();
|
||||||
cy.contains('Customer').click();
|
cy.contains('Customer').click();
|
||||||
@@ -187,4 +187,14 @@ describe('Data browser data', () => {
|
|||||||
cy.contains('Country: "Brazil"');
|
cy.contains('Country: "Brazil"');
|
||||||
cy.themeshot('mongoquery');
|
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
|
||||||
@@ -8,7 +8,7 @@ on:
|
|||||||
- 'feature/**'
|
- 'feature/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
alltests:
|
e2e-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ on:
|
|||||||
- 'feature/**'
|
- 'feature/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2etest:
|
all-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user