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

@@ -30,6 +30,9 @@ test('Record 9 new gifts', async ({ page }) => {
for (let i = 0; i < giftCount; i++) {
// Record something given
await page.goto('./');
if (i === 0) {
await page.getByTestId('closeOnboardingAndFinish').click();
}
await page.getByRole('heading', { name: 'Unnamed/Unknown' }).click();
await page.getByPlaceholder('What was given').fill(finalTitles[i]);
await page.getByRole('spinbutton').fill(finalNumbers[i].toString());