We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe4bd25 commit 2b05b53Copy full SHA for 2b05b53
test/integration/utils.ts
@@ -4,7 +4,7 @@ import { Page } from '@playwright/test';
4
export async function uploadMedia(page: Page, file: string) {
5
await page.goto('/wp-admin/media-new.php');
6
const fileChooserPromise = page.waitForEvent('filechooser');
7
- await page.locator('#async-upload').click();
+ await page.getByLabel('Upload').click();
8
const fileChooser = await fileChooserPromise;
9
await fileChooser.setFiles(path.join(__dirname, `../fixtures/${file}`));
10
await page.locator('#html-upload').click();
0 commit comments