We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bd8941 commit 6d032e4Copy full SHA for 6d032e4
.github/workflows/playwright.yml
@@ -69,6 +69,10 @@ jobs:
69
- name: Install wp-env
70
run: |
71
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
76
- name: Start wp-env
77
run: wp-env start
78
- name: Run playwright tests
@@ -79,6 +83,7 @@ jobs:
79
83
WP_USERNAME: admin
80
84
WP_PASSWORD: password
81
85
STACKABLE_SLUG: Stackable/plugin
86
+ WP_TEST_POSTID: ${{ env.WP_TEST_POSTID }}
82
87
run: npm run test
88
- uses: actions/upload-artifact@v4
89
if: ${{ !cancelled() && steps.run-playwright-tests.outcome == 'failure' }}
0 commit comments