forked from jsnbuchanan/crowd-funder-for-time-pwa
add tests for gives to & from projects
This commit is contained in:
@@ -25,6 +25,7 @@ test('Record an offer', async ({ page }) => {
|
||||
expect(page.getByRole('button', { name: 'Sign & Send' }));
|
||||
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
|
||||
|
||||
// go to the offer and check the values
|
||||
await page.goto('./projects');
|
||||
@@ -57,6 +58,7 @@ test('Record an offer', async ({ page }) => {
|
||||
await amount.fill(String(randomNonZeroNumber + 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
|
||||
|
||||
// go to the offer claim again and check the updated values
|
||||
await page.goto('./projects');
|
||||
@@ -107,4 +109,5 @@ test('Affirm delivery of an offer', async ({ page }) => {
|
||||
await page.getByRole('spinbutton').fill('2');
|
||||
await page.getByRole('button', { name: 'Sign & Send' }).click();
|
||||
await expect(page.getByText('That gift was recorded.')).toBeVisible();
|
||||
await page.locator('div[role="alert"] button > svg.fa-xmark').click(); // dismiss info alert
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user