diff --git a/.github/workflows/dotnet-core-master.yml b/.github/workflows/dotnet-core-master.yml index 4334b396..1559bd47 100644 --- a/.github/workflows/dotnet-core-master.yml +++ b/.github/workflows/dotnet-core-master.yml @@ -96,22 +96,14 @@ jobs: - name: Create errorShots directory run: mkdir eform-angular-frontend/eform-client/errorShots - name: Pretest changes to work with Docker container - run: sed -i 's/localhost/mariadbtest/g' eform-angular-frontend/eform-client/e2e/Constants/DatabaseConfigurationConstants.ts + run: sed -i 's/localhost/mariadbtest/g' eform-angular-frontend/eform-client/playwright/e2e/Constants/DatabaseConfigurationConstants.ts - name: Get standard output run: | cat docker_run_log + - name: Wait for app + run: npx wait-on http://localhost:4200 --timeout 120000 - name: DB Configuration - uses: cypress-io/github-action@v4 - with: - start: echo 'hi' - wait-on: "http://localhost:4200" - wait-on-timeout: 120 - browser: chrome - record: false - spec: cypress/e2e/db/* - config-file: cypress.config.ts - working-directory: eform-angular-frontend/eform-client - command-prefix: "--" + run: cd eform-angular-frontend/eform-client && npx playwright test playwright/e2e/Tests/database-configuration/ - name: Change rabbitmq hostname run: docker exec -i mariadbtest mariadb -u root --password=secretpassword -e 'update 420_SDK.Settings set Value = "my-rabbit" where Name = "rabbitMqHost"' - name: Enable plugins diff --git a/.github/workflows/dotnet-core-pr.yml b/.github/workflows/dotnet-core-pr.yml index d8affe77..d36a912a 100644 --- a/.github/workflows/dotnet-core-pr.yml +++ b/.github/workflows/dotnet-core-pr.yml @@ -88,22 +88,14 @@ jobs: - name: Create errorShots directory run: mkdir eform-angular-frontend/eform-client/errorShots - name: Pretest changes to work with Docker container - run: sed -i 's/localhost/mariadbtest/g' eform-angular-frontend/eform-client/e2e/Constants/DatabaseConfigurationConstants.ts + run: sed -i 's/localhost/mariadbtest/g' eform-angular-frontend/eform-client/playwright/e2e/Constants/DatabaseConfigurationConstants.ts - name: Get standard output run: | cat docker_run_log + - name: Wait for app + run: npx wait-on http://localhost:4200 --timeout 120000 - name: DB Configuration - uses: cypress-io/github-action@v4 - with: - start: echo 'hi' - wait-on: "http://localhost:4200" - wait-on-timeout: 120 - browser: chrome - record: false - spec: cypress/e2e/db/* - config-file: cypress.config.ts - working-directory: eform-angular-frontend/eform-client - command-prefix: "--" + run: cd eform-angular-frontend/eform-client && npx playwright test playwright/e2e/Tests/database-configuration/ - name: Change rabbitmq hostname run: docker exec -i mariadbtest mariadb -u root --password=secretpassword -e 'update 420_SDK.Settings set Value = "my-rabbit" where Name = "rabbitMqHost"' - name: Enable plugins