Skip to content

Commit

Permalink
feat: ✨ add GitHub repo link (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman authored Apr 5, 2023
1 parent 5908b3e commit 9c1e6a9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions e2e/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,18 @@ test.describe('external links', () => {

await expect(newPage).toHaveURL('https://tailwindcss.com/')
})

test('opened repo', async ({ page, context }) => {
const pagePromise = context.waitForEvent('page')

await page.getByRole('link', { name: /repo/i }).click()

const newPage = await pagePromise

await newPage.waitForLoadState()

await expect(newPage).toHaveURL(
'https://github.com/jimmy-guzman/react-starter#readme'
)
})
})
10 changes: 10 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ function App() {
<p>
Edit <code>src/App.tsx</code> and save to test HMR
</p>
<p>
Click on logos to learn more or visit the{' '}
<a
href='https://github.com/jimmy-guzman/react-starter#readme'
target='_blank'
rel='noreferrer'
>
repo
</a>
</p>
</div>
<p>Click on logos to learn more</p>
</div>
Expand Down

1 comment on commit 9c1e6a9

@vercel
Copy link

@vercel vercel bot commented on 9c1e6a9 Apr 5, 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.