Skip to content

Commit 2b05b53

Browse files
Change upload action
1 parent fe4bd25 commit 2b05b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Page } from '@playwright/test';
44
export async function uploadMedia(page: Page, file: string) {
55
await page.goto('/wp-admin/media-new.php');
66
const fileChooserPromise = page.waitForEvent('filechooser');
7-
await page.locator('#async-upload').click();
7+
await page.getByLabel('Upload').click();
88
const fileChooser = await fileChooserPromise;
99
await fileChooser.setFiles(path.join(__dirname, `../fixtures/${file}`));
1010
await page.locator('#html-upload').click();

0 commit comments

Comments
 (0)