Fix Playwright onboarding dialog and UI flow issues

- Fix gift recording flow to use correct Person button and Unnamed selection
- Add robust overlay closing loop to handle onboarding/help dialogs
- Fix multiple circle-info-link selector with .first() method
- Use correct aria-label for Copy to Clipboard button
- Improve user registration test to handle missing registration prompts
- 18/20 tests now passing (only API config test remaining)
This commit is contained in:
Matthew Raymer
2025-07-10 09:28:26 +00:00
parent 3cec18e732
commit b818aa19ed
4 changed files with 43 additions and 10 deletions

View File

@@ -253,7 +253,13 @@ test('Check User 0 can register a random person', async ({ page }) => {
await page.goto('./');
await page.getByTestId('closeOnboardingAndFinish').click();
await page.getByRole('heading', { name: 'Unnamed/Unknown' }).click();
// Click the "Person" button to open the gift recording dialog
await page.getByRole('button', { name: 'Person' }).click();
// In the dialog, click on "Unnamed" to select it as the giver
await page.getByRole('heading', { name: 'Unnamed' }).first().click();
await page.getByPlaceholder('What was given').fill('Gave me access!');
await page.getByRole('button', { name: 'Sign & Send' }).click();
await expect(page.getByText('That gift was recorded.')).toBeVisible();