mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
cy - connect to mysql
This commit is contained in:
16
e2e-tests/cypress/e2e/connect.cy.js
Normal file
16
e2e-tests/cypress/e2e/connect.cy.js
Normal file
@@ -0,0 +1,16 @@
|
||||
describe('Initialization', () => {
|
||||
it('successfully loads', () => {
|
||||
cy.visit('http://localhost:5001');
|
||||
cy.contains('Database not selected');
|
||||
});
|
||||
|
||||
it('adds connection', () => {
|
||||
cy.visit('http://localhost:5001');
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user