connect test

This commit is contained in:
SPRINX0\prochazka
2024-12-09 17:22:29 +01:00
parent f1cd0ab689
commit 4cbc7f3ae5
2 changed files with 4 additions and 5 deletions

View File

@@ -39,5 +39,3 @@ jobs:
image: mysql:8.0.18 image: mysql:8.0.18
env: env:
MYSQL_ROOT_PASSWORD: Pwd2020Db MYSQL_ROOT_PASSWORD: Pwd2020Db
ports:
- 16004:3306

View File

@@ -12,9 +12,10 @@ describe('Initialization', () => {
cy.get('[data-testid=ConnectionDriverFields_connectionType]').select('MySQL'); cy.get('[data-testid=ConnectionDriverFields_connectionType]').select('MySQL');
cy.get('[data-testid=ConnectionDriverFields_user]').clear().type('root'); cy.get('[data-testid=ConnectionDriverFields_user]').clear().type('root');
cy.get('[data-testid=ConnectionDriverFields_password]').clear().type('Pwd2020Db'); cy.get('[data-testid=ConnectionDriverFields_password]').clear().type('Pwd2020Db');
cy.get('[data-testid=ConnectionDriverFields_port]').clear().type('16004');
if (runOnCI) { if (runOnCI) {
cy.get('[data-testid=ConnectionDriverFields_server]').clear().type('mysql'); cy.get('[data-testid=ConnectionDriverFields_server]').clear().type('mysql');
} else {
cy.get('[data-testid=ConnectionDriverFields_port]').clear().type('16004');
} }
cy.get('[data-testid=ConnectionDriverFields_displayName]').clear().type('test-mysql-1'); cy.get('[data-testid=ConnectionDriverFields_displayName]').clear().type('test-mysql-1');
cy.get('[data-testid=ConnectionTab_buttonSave]').click(); cy.get('[data-testid=ConnectionTab_buttonSave]').click();
@@ -24,7 +25,7 @@ describe('Initialization', () => {
// it('import chinook DB', () => { // it('import chinook DB', () => {
// cy.visit('http://localhost:3000'); // cy.visit('http://localhost:3000');
// cy.findByText('test-mysql-1').dblclick(); // cy.get('[data-testid=ConnectionTab_buttonConnect]').click();
// }); // });
}); });