diff --git a/test-playwright/50-record-offer.spec.ts b/test-playwright/50-record-offer.spec.ts index f8065498..25134370 100644 --- a/test-playwright/50-record-offer.spec.ts +++ b/test-playwright/50-record-offer.spec.ts @@ -23,7 +23,7 @@ test('Record an offer', async ({ page }) => { await page.locator('button', { hasText: 'Edit' }).isVisible(); // since the 'edit' takes longer to show, wait for that (lest the click miss) await page.getByTestId('offerButton').click(); await page.getByTestId('inputDescription').fill(description); - await page.getByTestId('inputOfferAmount').fill(randomNonZeroNumber.toString()); + await page.getByTestId('inputOfferAmount').locator('input').fill(randomNonZeroNumber.toString()); expect(page.getByRole('button', { name: 'Sign & Send' })); await page.getByRole('button', { name: 'Sign & Send' }).click(); await expect(page.getByText('That offer was recorded.')).toBeVisible(); diff --git a/test-playwright/60-new-activity.spec.ts b/test-playwright/60-new-activity.spec.ts index daffbb30..889365f8 100644 --- a/test-playwright/60-new-activity.spec.ts +++ b/test-playwright/60-new-activity.spec.ts @@ -36,7 +36,7 @@ test('New offers for another user', async ({ page }) => { const randomString1 = Math.random().toString(36).substring(2, 5); await page.getByTestId('offerButton').click(); await page.getByTestId('inputDescription').fill(`help of ${randomString1} from #000`); - await page.getByTestId('inputOfferAmount').fill('1'); + await page.getByTestId('inputOfferAmount').locator('input').fill('1'); await page.getByRole('button', { name: 'Sign & Send' }).click(); await expect(page.getByText('That offer was recorded.')).toBeVisible(); await page.locator('div[role="alert"] button > svg.fa-xmark').click(); // dismiss info alert @@ -46,7 +46,7 @@ test('New offers for another user', async ({ page }) => { const randomString2 = Math.random().toString(36).substring(2, 5); await page.getByTestId('offerButton').click(); await page.getByTestId('inputDescription').fill(`help of ${randomString2} from #000`); - await page.getByTestId('inputOfferAmount').fill('3'); + await page.getByTestId('inputOfferAmount').locator('input').fill('3'); await page.getByRole('button', { name: 'Sign & Send' }).click(); await expect(page.getByText('That offer was recorded.')).toBeVisible(); await page.locator('div[role="alert"] button > svg.fa-xmark').click(); // dismiss info alert