diff --git a/e2e/app.spec.ts b/e2e/app.spec.ts index bdc6514..331513f 100644 --- a/e2e/app.spec.ts +++ b/e2e/app.spec.ts @@ -26,7 +26,7 @@ test.describe('external links', () => { test('opened React docs', async ({ page, context }) => { const pagePromise = context.waitForEvent('page') - await page.getByRole('link', { name: /react/i }).click() + await page.getByRole('link', { name: 'React', exact: true }).click() const newPage = await pagePromise @@ -62,14 +62,14 @@ test.describe('external links', () => { test('opened repo', async ({ page, context }) => { const pagePromise = context.waitForEvent('page') - await page.getByRole('link', { name: /get started/i }).click() + await page.getByRole('link', { name: 'GitHub' }).click() const newPage = await pagePromise await newPage.waitForLoadState() await expect(newPage).toHaveURL( - 'https://github.com/jimmy-guzman/react-starter#readme' + 'https://github.com/jimmy-guzman/react-starter' ) }) }) diff --git a/package.json b/package.json index 55d7767..0dba748 100644 --- a/package.json +++ b/package.json @@ -15,9 +15,10 @@ "test": "vitest", "coverage": "vitest run --coverage", "e2e": "playwright test", - "deps:update": "pnpm dlx npm-check-updates -ui", + "e2e:ui": "playwright test --ui", "stories:build": "storybook build", "stories": "storybook dev -p 6006", + "deps:update": "pnpm dlx npm-check-updates -ui", "prepare": "is-ci || husky install" }, "lint-staged": {