File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,16 @@ jobs:
1717 wp-version : [67]
1818 steps :
1919 - name : Checkout code
20- uses : actions/checkout@v3
20+ uses : actions/checkout@v4
2121
2222 - name : Setup Node.js
23- uses : actions/setup-node@v3
23+ uses : actions/setup-node@v4
2424 with :
2525 node-version : 18
2626 cache : ' npm'
2727
2828 - name : Cache node_modules
29- uses : actions/cache@v3
29+ uses : actions/cache@v4
3030 with :
3131 path : node_modules
3232 key : ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
4141 run : echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
4242
4343 - name : Cache Playwright
44- uses : actions/cache@v3
44+ uses : actions/cache@v4
4545 id : playwright-cache
4646 with :
4747 path : |
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export default defineConfig({
44 testDir : './test' ,
55 fullyParallel : false ,
66 forbidOnly : ! ! process . env . CI ,
7- retries : process . env . CI ? 2 : 0 ,
7+ retries : 0 ,
88 workers : 1 ,
99 reporter : 'html' ,
1010 use : {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { Page } from '@playwright/test';
33
44export async function uploadMedia ( page : Page , file : string ) {
55 await page . goto ( '/wp-admin/media-new.php' ) ;
6+ await page . waitForLoadState ( 'networkidle' ) ; // ensure media library is loaded
67 const fileChooserPromise = page . waitForEvent ( 'filechooser' ) ;
78 await page . getByLabel ( 'Upload' ) . click ( ) ;
89 const fileChooser = await fileChooserPromise ;
You can’t perform that action at this time.
0 commit comments