Skip to content

Commit 6d032e4

Browse files
committed
test with existing post
1 parent 4bd8941 commit 6d032e4

File tree

2 files changed

+864
-0
lines changed

2 files changed

+864
-0
lines changed

.github/workflows/playwright.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ jobs:
6969
- name: Install wp-env
7070
run: |
7171
npm install -g @wordpress/env
72+
- name: Create post with existing blocks
73+
run: |
74+
POST_ID=$(wp post create ./e2e/config/post-content.txt --post_title="Existing Blocks" --post_status=publish --porcelain)
75+
echo "WP_TEST_POSTID=$POST_ID" >> $GITHUB_ENV
7276
- name: Start wp-env
7377
run: wp-env start
7478
- name: Run playwright tests
@@ -79,6 +83,7 @@ jobs:
7983
WP_USERNAME: admin
8084
WP_PASSWORD: password
8185
STACKABLE_SLUG: Stackable/plugin
86+
WP_TEST_POSTID: ${{ env.WP_TEST_POSTID }}
8287
run: npm run test
8388
- uses: actions/upload-artifact@v4
8489
if: ${{ !cancelled() && steps.run-playwright-tests.outcome == 'failure' }}

0 commit comments

Comments
 (0)