Skip to content

Commit ac826d0

Browse files
committed
fix(tests): ensure "Upload Invoice" button click targets the first match
1 parent a481088 commit ac826d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/frontend/e2e/invoices.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ test.describe('Invoice list — filtering', () => {
6767
test.describe('Invoice list — navigation', () => {
6868
test('Upload Invoice button links to /upload', async ({ uploaderPage: page }) => {
6969
await page.goto('/invoices');
70-
await page.getByRole('main').getByRole('link', { name: /upload invoice/i }).click();
70+
await page.getByRole('main').getByRole('link', { name: /upload invoice/i }).first().click();
7171
await expect(page).toHaveURL(/\/upload/);
7272
});
7373

0 commit comments

Comments
 (0)