cy - connect to mysql

This commit is contained in:
SPRINX0\prochazka
2024-12-06 15:46:23 +01:00
parent ed7bfe0c21
commit ac0ea6a937
8 changed files with 156 additions and 11 deletions

View 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');
});
});