mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 08:26:29 +00:00
test fix
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -31,4 +31,5 @@ yarn-error.log*
|
||||
packages/api/src/packagedPluginsContent.js
|
||||
.VSCodeCounter
|
||||
|
||||
packages/web/public/*.html
|
||||
packages/web/public/*.html
|
||||
e2e-tests/screenshots/*.png
|
||||
@@ -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
|
||||
@@ -8,7 +8,7 @@ on:
|
||||
- 'feature/**'
|
||||
|
||||
jobs:
|
||||
alltests:
|
||||
e2e-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
@@ -8,7 +8,7 @@ on:
|
||||
- 'feature/**'
|
||||
|
||||
jobs:
|
||||
e2etest:
|
||||
all-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user