chore: improve development for non-Linux contributors (#5288)

* test: fix e2e against console dev server

* chore: get rid of network_mode host

* explain e2e commands

* chore: fix pipelines

* fix e2e paths

* fix dockerized e2e

* chore: map cypress run service ports

* simplify localhost

* access db via compose service

* access db via compose service

* fix npm run open:angular and e2e:angular

* docs: add empty line

* chore: remove unused file

* docs:  update contrib

---------

Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
This commit is contained in:
Elio Bischof
2023-02-28 18:49:19 +01:00
committed by GitHub
parent 273d3d85b9
commit abacb6c5aa
10 changed files with 192 additions and 70 deletions

View File

@@ -58,7 +58,7 @@ export function login(
times: 1,
}).as('password');
cy.visit(loginUrl, { retryOnNetworkFailure: true });
cy.visit(Cypress.config('baseUrl'), { retryOnNetworkFailure: true });
onUsernameScreen ? onUsernameScreen() : null;
cy.get('#loginName').type(creds.username);
@@ -69,7 +69,7 @@ export function login(
cy.get('#submit-button').click();
cy.wait('@password').then((interception) => {
if (interception.response.body.indexOf('/ui/login/mfa/prompt') === -1) {
if (interception.response.body.indexOf(`${loginUrl}/mfa/prompt`) === -1) {
return;
}