Skip to content

Feature/EPMUII-10417 Configure e2e tests on playwright#222

Merged
rrodionov91 merged 19 commits intodevelopfrom
feature/EPMUII-10417-Configure_e2e_tests_on_playwright
Apr 13, 2025
Merged

Feature/EPMUII-10417 Configure e2e tests on playwright#222
rrodionov91 merged 19 commits intodevelopfrom
feature/EPMUII-10417-Configure_e2e_tests_on_playwright

Conversation

@rrodionov91
Copy link
Collaborator

@rrodionov91 rrodionov91 commented Mar 12, 2025

  • created folder and docker config for e2e tests
  • added serve for prod build
  • configured docker for app and tests run
  • added github workflow for e2e tests

- created folder and docker config for e2e tests
- added serve for prod build
- configured docker for app and tests run
- added github workflow for e2e tests
- added github workflow for e2e tests
- changed node version on gh workflow
- test gh workflow
- test gh workflow
- test gh workflow
- test gh workflow
- test gh workflow
- test gh workflow
- test gh workflow
- test gh workflow
- test gh workflow
- test gh workflow
@rrodionov91 rrodionov91 force-pushed the feature/EPMUII-10417-Configure_e2e_tests_on_playwright branch from 57ffad2 to 82057d9 Compare April 3, 2025 10:17
Comment on lines +3 to +9
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// import dotenv from 'dotenv';
// import path from 'path';
// dotenv.config({ path: path.resolve(__dirname, '.env') });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// import dotenv from 'dotenv';
// import path from 'path';
// dotenv.config({ path: path.resolve(__dirname, '.env') });

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is default generated comment. We are not going to introduce env variables in current PR

// baseURL: 'http://127.0.0.1:3000',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'off',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
trace: 'off',
trace: 'on-first-retry',
screenshot: 'only-on-failure',

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Traces increase the report size dramatically. According to my experience they are not so useful because every report contains test steps log and it is easy to run it locally with debug option if needed (usually not often). So I'm going to keep it off in this PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections

- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
node-version: 16
node-version: 18

@@ -0,0 +1,8 @@
FROM node:16-bullseye-slim
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
FROM node:16-bullseye-slim
FROM node:18-bullseye-slim

- fixed failed test
- updated package-lock after rebase
- removed excessive operations in test running scripts
- fixed failed test
- updated package-lock after rebase
- removed excessive operations in test running scripts
- added shutting services down after test execution
- added prepare scripts for tests
- fixed tests build
@rrodionov91 rrodionov91 changed the title Feature/epm UI i 10417 configure e2e tests on playwright Feature/EPMUII-10417 Configure e2e tests on playwright Apr 3, 2025
- added docs
- fixed test parametrization
- fixed docs
@rrodionov91 rrodionov91 merged commit 115a716 into develop Apr 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants