add tests for gives to & from projects

This commit is contained in:
2024-11-29 10:42:58 -07:00
parent 10bb79f695
commit f7fd568c60
11 changed files with 75 additions and 11 deletions

View File

@@ -87,6 +87,7 @@ test('Add contact, record gift, confirm gift', async ({ page }) => {
await page.getByRole('button', { name: 'Confirm' }).click();
await page.getByRole('button', { name: 'Yes' }).click();
await expect(page.getByText('Confirmation submitted.')).toBeVisible();
await page.locator('div[role="alert"] button > svg.fa-xmark').click(); // dismiss info alert
// Refresh claim page, Confirm button should throw an alert because they already confirmed
await page.reload();
@@ -112,7 +113,7 @@ test('Without being registered, add contacts without registration', async ({ pag
});
test('Add contact, copy details, delete, and import various ways', async ({ page, context }) => {
test('Add contact, copy details, delete, and import from paste & from file', async ({ page, context }) => {
await importUser(page, '00');
// Add new contact
@@ -179,7 +180,7 @@ test('Add contact, copy details, delete, and import various ways', async ({ page
// check that there are more contacts
await expect(page.getByTestId('contactListItem')).toHaveCount(2);
// Import via the file backup-import
// Import via the file backup-import, with both new and existing contacts
await page.goto('./account');
await page.getByRole('heading', { name: 'Advanced' }).click();
const fileSelect = await page.locator('input[type="file"]')