Playwright: added ID to spinbutton

This commit is contained in:
Jose Olarte III
2024-08-08 15:47:19 +08:00
parent f17f830453
commit c8bdaa10eb
2 changed files with 2 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ test('Record something given', async ({ page }) => {
await page.goto('./');
await page.getByRole('heading', { name: 'Unnamed/Unknown' }).click();
await page.getByPlaceholder('What was given').fill(finalTitle);
await page.getByRole('spinbutton').fill(randomNonZeroNumber.toString());
await page.getByRole('spinbutton', { id: 'inputGivenAmount' }).fill(randomNonZeroNumber.toString());
await page.getByRole('button', { name: 'Sign & Send' }).click();
await expect(page.getByText('That gift was recorded.')).toBeVisible();