Skip to content

Commit

Permalink
Try again with a different selector
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-to committed Oct 29, 2024
1 parent be97b31 commit 059447c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesop/components/uploader/e2e/uploader_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('test upload file', async ({page}) => {
// Check that we can re-upload the same file.
// Also check that the icon in the button is being rendered in the composite
// uploader component.
await page.locator('//*[@role="img"]').click();
await page.locator('//*[@role="img" and text()=" upload"]').click();
const fileChooser2 = await fileChooserPromise;
await fileChooser2.setFiles(path.join(__dirname, 'mesop_robot.jpeg'));
await expect(page.getByText('File name: mesop_robot.jpeg')).toHaveCount(1);
Expand Down

0 comments on commit 059447c

Please sign in to comment.