mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
generate screenshots
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
beforeEach(() => {
|
||||
cy.visit('http://localhost:3000');
|
||||
cy.viewport(1250, 900);
|
||||
});
|
||||
|
||||
describe('Data browser data', () => {
|
||||
it('Load table data', () => {
|
||||
cy.visit('http://localhost:3000');
|
||||
|
||||
cy.contains('MySql-connection').click();
|
||||
cy.contains('Chinook').click();
|
||||
cy.contains('Album').click();
|
||||
@@ -11,9 +14,7 @@ describe('Data browser data', () => {
|
||||
cy.contains('Aerosmith');
|
||||
});
|
||||
|
||||
it.only('Filter model', () => {
|
||||
cy.visit('http://localhost:3000');
|
||||
|
||||
it('Filter model', () => {
|
||||
cy.contains('MySql-connection').click();
|
||||
cy.contains('Chinook').click();
|
||||
cy.testid('SqlObjectList_search').clear().type('album');
|
||||
@@ -29,8 +30,6 @@ describe('Data browser data', () => {
|
||||
});
|
||||
|
||||
it('Show raw data', () => {
|
||||
cy.visit('http://localhost:3000');
|
||||
|
||||
cy.contains('MySql-connection').click();
|
||||
cy.contains('Chinook').click();
|
||||
cy.contains('Album').rightclick();
|
||||
@@ -40,4 +39,43 @@ describe('Data browser data', () => {
|
||||
cy.realPress(['Control', 'ArrowRight']);
|
||||
cy.contains('Aerosmith').should('not.exist');
|
||||
});
|
||||
|
||||
it('Data grid screenshots', () => {
|
||||
cy.contains('MySql-connection').click();
|
||||
cy.window().then(win => {
|
||||
win.__changeCurrentTheme('theme-dark');
|
||||
});
|
||||
|
||||
cy.contains('MyChinook').click();
|
||||
|
||||
cy.contains('Album').click();
|
||||
cy.testid('TabsPanel_pinTabButton').click();
|
||||
cy.contains('Genre').click();
|
||||
cy.testid('TabsPanel_pinTabButton').click();
|
||||
cy.contains('Playlist').click();
|
||||
cy.testid('TabsPanel_pinTabButton').click();
|
||||
|
||||
cy.contains('Postgres-connection').click();
|
||||
cy.contains('PgChinook').click();
|
||||
cy.contains('customer').click();
|
||||
cy.contains('Leonie').click();
|
||||
cy.screenshot('datagrid');
|
||||
|
||||
cy.contains('invoice').click();
|
||||
cy.contains('invoice_line (invoice_id)').click();
|
||||
cy.screenshot('masterdetail');
|
||||
|
||||
cy.contains('9, Place Louis Barthou').click();
|
||||
cy.contains('Switch to form').click();
|
||||
cy.contains('Switch to table'); // test that we are in form view
|
||||
cy.screenshot('formview');
|
||||
});
|
||||
|
||||
it.only('SQL Gen', () => {
|
||||
cy.contains('Postgres-connection').click();
|
||||
cy.contains('PgChinook').rightclick();
|
||||
cy.contains('SQL Generator').click();
|
||||
cy.contains('Check all').click();
|
||||
cy.screenshot('sqlgen');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user