adjust tests for new onboarding messages

This commit is contained in:
2024-10-23 09:07:34 -06:00
parent 53abf964b2
commit 45214eabc5
10 changed files with 44 additions and 20 deletions

View File

@@ -49,6 +49,7 @@ test('Add contact, record gift, confirm gift', async ({ page }) => {
// Confirm that home shows contact in "Record Something…"
await page.goto('./');
await page.getByTestId('closeOnboardingAndFinish').click();
await expect(page.locator('#sectionRecordSomethingGiven ul li').filter({ hasText: contactName }).nth(0)).toBeVisible();
// Record something given by new contact
@@ -78,6 +79,7 @@ test('Add contact, record gift, confirm gift', async ({ page }) => {
// Go to home view and look for gift
await page.goto('./');
await page.getByTestId('closeOnboardingAndFinish').click();
await page.locator('li').filter({ hasText: finalTitle }).locator('a').click();
// Confirm gift as user 00