Skip to content

Commit 13e32f6

Browse files
Refactor setup tests (#2498)
* Update setup tests * Fix lint
1 parent de5c7a1 commit 13e32f6

29 files changed

+1148
-344
lines changed

.github/workflows/e2e_api_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
if: always() && (steps.e2e-test.outcome == 'success' || steps.e2e-test.outcome == 'failure')
175175
working-directory: tests/pw
176176
run: |
177-
npm run test:e2e:coverage
177+
npm run test:e2e:coverage
178178
179179
# Run api tests
180180
- name: 🧪 Run api tests
@@ -198,18 +198,18 @@ jobs:
198198
199199
# # Find PR comment
200200
# - name: Find PR comment by github-actions[bot]
201-
# uses: peter-evans/find-comment@v3
202201
# id: find-comment
203202
# if: github.event_name == 'pull_request'
203+
# uses: peter-evans/find-comment@v3
204204
# with:
205205
# issue-number: ${{ github.event.pull_request.number }}
206206
# comment-author: 'github-actions[bot]'
207207
# body-includes: Tests Summary
208208

209209
# # Post test summary as PR comment
210210
# - name: Create or update PR comment
211-
# uses: peter-evans/create-or-update-comment@v4
212211
# if: github.event_name == 'pull_request'
212+
# uses: peter-evans/create-or-update-comment@v4
213213
# with:
214214
# comment-id: ${{ steps.find-comment.outputs.comment-id }}
215215
# issue-number: ${{ github.event.pull_request.number }}
@@ -226,8 +226,8 @@ jobs:
226226
227227
# Upload artifacts
228228
- name: Archive test artifacts (screenshots, HTML snapshots, Reports)
229-
uses: actions/upload-artifact@v4
230229
if: always() && steps.debug-log.outcome == 'success'
230+
uses: actions/upload-artifact@v4
231231
with:
232232
name: test-artifact
233233
path: |

tests/pw/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ Temporary Items
174174
playwright/
175175
test-results/
176176
playwright-report/
177+
blob-report/
177178
playwright/.cache/
178179
visual.spec.ts-snapshots/
179180

tests/pw/.wp-env.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"mappings": {
1717
".htaccess": ".htaccess",
1818
"wp-data": "./wp-data",
19-
"wp-content/debug.log": "./wp-data/debug.log"
19+
"wp-content/debug.log": "./wp-data/debug.log",
20+
"wp-content/mu-plugins": "./mu-plugins"
2021
}
2122
}
2223
}

tests/pw/api.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default defineConfig({
4444
/* Configure reporters */
4545
reporter: CI
4646
? [
47-
['github'],
47+
// ['github'],
4848
['html', { open: 'never', outputFolder: 'playwright-report/api/html-report' }],
4949
// ['junit', { outputFile: 'playwright-report/api/junit-report/api-results.xml' }],
5050
['list', { printSteps: true }],

tests/pw/feature-map/feature-map.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,6 +1580,9 @@
15801580
vendor can delete booking resource: true
15811581
vendor can add booking for guest customer: true
15821582
vendor can add booking for existing customer: true
1583+
vendor can add booking with new order id: false
1584+
vendor can add booking with existing order id: false
1585+
vendor can add booking without order id: false
15831586
vendor can update booking product title: true
15841587
vendor can add booking product accommodation booking option: true
15851588
vendor can update booking product accommodation booking option: true
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?php
2+
add_filter( 'doing_it_wrong_trigger_error', '__return_false' );

0 commit comments

Comments
 (0)