mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 23:13:57 +00:00
connect test
This commit is contained in:
2
.github/workflows/e2e-tests.yaml
vendored
2
.github/workflows/e2e-tests.yaml
vendored
@@ -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
|
|
||||||
|
|||||||
@@ -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();
|
||||||
// });
|
// });
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user