e2e test refactor

This commit is contained in:
SPRINX0\prochazka
2025-01-09 12:43:32 +01:00
parent de1a1c923a
commit f7ed9c3eda
11 changed files with 20 additions and 125 deletions

View File

@@ -2,20 +2,10 @@ describe('OAuth', () => {
it('OAuth login', () => {
cy.visit('http://localhost:3000');
const runOnCI = Cypress.env('runOnCI');
// login on DEX
if (runOnCI) {
cy.origin('http://dex:5556', () => {
cy.get('#login').clear().type('test@example.com');
cy.get('#password').clear().type('test');
cy.get('#submit-login').click();
});
} else {
cy.get('#login').clear().type('test@example.com');
cy.get('#password').clear().type('test');
cy.get('#submit-login').click();
}
cy.get('#login').clear().type('test@example.com');
cy.get('#password').clear().type('test');
cy.get('#submit-login').click();
// check DbGate connection
cy.contains('MySql-connection').click();