ljmotta opened a new pull request, #3382: URL: https://github.com/apache/incubator-kie-tools/pull/3382
This PR adds the option to change the Playwright configuration through environment variables. ``` # Enable running tests on Apple Silicon Google Chrome. Overrides PLAYWRIGHT_BASE__enableGoogleChromeProject. PLAYWRIGHT_BASE__enableGoogleChromeTestsForAppleSilicon=true # Enable/disable Chromium tests PLAYWRIGHT_BASE__enableChromiumProject=true # Enable/disable Google Chrome tests PLAYWRIGHT_BASE__enableGoogleChromeProject=true # Enable/disable Webkit tests PLAYWRIGHT_BASE__enableWebkitProject=true # Set project timeout PLAYWRIGHT_BASE__projectTimeout=90000 # Set "expect" statement timeout PLAYWRIGHT_BASE__expectTimeout=30000 # Set the maxDiffPixelRatio for the test assertion. PLAYWRIGHT_BASE__maxDiffPixelRatio=0.001 # Set the number of retries for each test. PLAYWRIGHT_BASE__retries=2 # Set the number of workers used when executing the test suite. Increasing this number can increase the tests flakyness. PLAYWRIGHT_BASE__workers=6 ``` This PR also: - Creates a new CLI (`pw-e2e-container`) to handle Playwright specific containerization configurations instead of bloating the `package.json` with more commands. - Remove 0.1 maxDiffPixel on `boxed-expression-component` and `scesim-editor`. - Uses `start-server-and-test` on all packages. - Improvements on `online-editor` test logs. Now, it is possible to enable/disable suite for a specific project without using the `shell`. Example for run only webkit tests with more workers: ```sh KIE_TOOLS_BUILD__runEndToEndTests=true PLAYWRIGHT_BASE__enableWebkitProject=true PLAYWRIGHT_BASE__enableGoogleChromeProject=false PLAYWRIGHT_BASE__enableChromiumProject=false PLAYWRIGHT_BASE__workers=6 pnpm test-e2e ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
