mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 21:26:00 +00:00
17 lines
664 B
JavaScript
17 lines
664 B
JavaScript
describe('Initialization', () => {
|
|
it('successfully loads', () => {
|
|
cy.visit('http://localhost:3000');
|
|
cy.contains('Database not selected');
|
|
});
|
|
|
|
it('adds connection', () => {
|
|
cy.visit('http://localhost:3000');
|
|
cy.get('[data-testid=ConnectionDriverFields_connectionType]').select('MySQL');
|
|
cy.get('[data-testid=ConnectionDriverFields_user]').clear().type('root');
|
|
cy.get('[data-testid=ConnectionDriverFields_password]').clear().type('Pwd2020Db');
|
|
cy.get('[data-testid=ConnectionDriverFields_port]').clear().type('16004');
|
|
cy.get('[data-testid=ConnectionTab_connect]').click();
|
|
cy.contains('performance_schema');
|
|
});
|
|
});
|