Skip to content

Commit

Permalink
fix: 🐛 update e2e tests due to refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Dec 4, 2023
1 parent 9cf6796 commit 09b0cde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions e2e/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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'
)
})
})
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

1 comment on commit 09b0cde

@vercel
Copy link

@vercel vercel bot commented on 09b0cde Dec 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.