Browse Source

Update: locators match new gifting dialog

pull/142/head
Jose Olarte III 6 days ago
parent
commit
36ebdaeaa0
  1. 3
      test-playwright/33-record-gift-x10.spec.ts

3
test-playwright/33-record-gift-x10.spec.ts

@ -115,7 +115,8 @@ test('Record 9 new gifts', async ({ page }) => {
if (i === 0) { if (i === 0) {
await page.getByTestId('closeOnboardingAndFinish').click(); await page.getByTestId('closeOnboardingAndFinish').click();
} }
await page.getByRole('heading', { name: 'Unnamed/Unknown' }).click(); await page.getByRole('button', { name: 'Person' }).click();
await page.getByRole('listitem').filter({ hasText: 'Unnamed' }).locator('svg').click();
await page.getByPlaceholder('What was given').fill(finalTitles[i]); await page.getByPlaceholder('What was given').fill(finalTitles[i]);
await page.getByRole('spinbutton').fill(finalNumbers[i].toString()); await page.getByRole('spinbutton').fill(finalNumbers[i].toString());
await page.getByRole('button', { name: 'Sign & Send' }).click(); await page.getByRole('button', { name: 'Sign & Send' }).click();

Loading…
Cancel
Save