[e2e tests] Add Allure reporter to Blocks e2e tests (#49228)

This commit is contained in:
Adrian Moldovan 2024-07-08 13:02:31 +01:00 committed by GitHub
parent 8f98a2a057
commit 7b0f9457cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 22 additions and 3 deletions

View File

@ -194,6 +194,7 @@
"@wordpress/prettier-config": "1.4.0",
"@wordpress/scripts": "24.6.0",
"@wordpress/stylelint-config": "^21.36.0",
"allure-playwright": "^2.9.2",
"autoprefixer": "10.4.14",
"axios": "0.27.2",
"babel-jest": "^29.7.0",

View File

@ -23,7 +23,17 @@ const config: PlaywrightTestConfig = {
// Don't report slow test "files", as we're running our tests in serial.
reportSlowTests: null,
reporter: process.env.CI
? [ [ 'github' ], [ 'list' ], [ './flaky-tests-reporter.ts' ] ]
? [
[ 'github' ],
[ 'list' ],
[ './flaky-tests-reporter.ts' ],
[
'allure-playwright',
{
outputFolder: `${ __dirname }/artifacts/test-results/allure-results`,
},
],
]
: 'list',
use: {
baseURL: BASE_URL,

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Add Allure to Blocks e2e tests

View File

@ -605,7 +605,8 @@
],
"report": {
"resultsBlobName": "blocks-e2e-report",
"resultsPath": "../woocommerce-blocks/tests/e2e/artifacts/test-results"
"resultsPath": "../woocommerce-blocks/tests/e2e/artifacts/test-results",
"allure": true
}
},
{

View File

@ -4260,6 +4260,9 @@ importers:
'@wordpress/stylelint-config':
specifier: ^21.36.0
version: 21.36.0(postcss@8.4.32)(stylelint@14.16.1)
allure-playwright:
specifier: ^2.9.2
version: 2.9.2
autoprefixer:
specifier: 10.4.14
version: 10.4.14(postcss@8.4.32)
@ -21630,7 +21633,7 @@ packages:
engines: {node: '>=18'}
hasBin: true
peerDependencies:
react: 18.2.0
react: ^17.0.2
react-number-format@4.9.3:
resolution: {integrity: sha512-am1A1xYAbENuKJ+zpM7V+B1oRTSeOHYltqVKExznIVFweBzhLmOBmyb1DfIKjHo90E0bo1p3nzVJ2NgS5xh+sQ==}