Browse Source

fix test

master
Trent Larson 3 days ago
parent
commit
34248a2ee5
  1. 4
      test-playwright/00-noid-tests.spec.ts

4
test-playwright/00-noid-tests.spec.ts

@ -84,8 +84,8 @@ test('Check setting name & sharing info', async ({ page }) => {
await expect(page.getByText('Set Your Name')).toBeVisible(); await expect(page.getByText('Set Your Name')).toBeVisible();
await page.getByRole('textbox').fill('Me Test User'); await page.getByRole('textbox').fill('Me Test User');
await page.locator('button:has-text("Save")').click(); await page.locator('button:has-text("Save")').click();
await expect(page.getByText('share another way')).toBeVisible(); await expect(page.getByText('share some other way')).toBeVisible();
await page.getByRole('button', { name: /share another way/ }).click(); await page.getByRole('button', { name: /share some other way/ }).click();
await expect(page.getByRole('button', { name: 'copy to clipboard' })).toBeVisible(); await expect(page.getByRole('button', { name: 'copy to clipboard' })).toBeVisible();
await page.getByRole('button', { name: 'copy to clipboard' }).click(); await page.getByRole('button', { name: 'copy to clipboard' }).click();
await expect(page.getByText('contact info was copied')).toBeVisible(); await expect(page.getByText('contact info was copied')).toBeVisible();

Loading…
Cancel
Save