|
|
@ -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
|
|
|
|