Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitvinnakota-codecov committed Jun 12, 2024
2 parents e70cb5c + ba29cec commit 9fab890
Show file tree
Hide file tree
Showing 293 changed files with 4,248 additions and 5,850 deletions.
228 changes: 114 additions & 114 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.6",
"@radix-ui/react-radio-group": "^1.1.3",
"@sentry/react": "^8.4.0",
"@sentry/react": "^8.8.0",
"@stripe/react-stripe-js": "^2.7.1",
"@stripe/stripe-js": "^3.4.0",
"@tanstack/react-query": "^4.29.5",
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function Header() {
return (
<header
className={cs('text-white', {
'bg-ds-default border-b-2': !isImpersonating && !currentUser,
'bg-white border-b-2': !isImpersonating && !currentUser,
'bg-ds-primary-base': !isImpersonating && !!currentUser,
'bg-ds-pink-tertiary': isImpersonating,
})}
Expand Down
8 changes: 2 additions & 6 deletions src/layouts/LoginLayout/LoginLayout.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('LoginLayout', () => {
expect(link).toHaveAttribute('href', 'https://about.codecov.io')
})

it('renders new to codecov link', () => {
it('renders guest header', () => {
setup()

render(<LoginLayout>child content</LoginLayout>, {
Expand All @@ -69,12 +69,8 @@ describe('LoginLayout', () => {
}),
})

const text = screen.getByText(/New to Codecov\?/)
const text = screen.getByText(/Why Test Code\?/)
expect(text).toBeInTheDocument()

const link = screen.getByRole('link', { name: /Learn more/ })
expect(link).toBeInTheDocument()
expect(link).toHaveAttribute('href', 'https://about.codecov.io')
})

it('renders children', () => {
Expand Down
Loading

0 comments on commit 9fab890

Please sign in to comment.