Skip to content

Commit

Permalink
fix: Update copy for tokenless tab
Browse files Browse the repository at this point in the history
  • Loading branch information
RulaKhaled committed Jan 6, 2025
1 parent 9807408 commit ccd1705
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ describe('TokenlessSection', () => {
setup()
render(<TokenlessSection />, { wrapper })

const title = await screen.findByText('Token authentication')
const title = await screen.findByText(
'Token authentication for public repositories'
)
expect(title).toBeInTheDocument()
})

Expand All @@ -126,7 +128,7 @@ describe('TokenlessSection', () => {
render(<TokenlessSection />, { wrapper })

const notRequiredDescription = await screen.findByText(
'When a token is not required, your team can upload coverage reports without one. Existing tokens will still work, and no action is needed for past uploads. Designed for public open-source projects.'
'When a token is not required, your team can upload coverage reports without one. Existing tokens will still work, and no action is needed for past uploads.'
)
expect(notRequiredDescription).toBeInTheDocument()
})
Expand All @@ -136,7 +138,7 @@ describe('TokenlessSection', () => {
render(<TokenlessSection />, { wrapper })

const requiredDescription = await screen.findByText(
'When a token is required, your team must use a global or repo-specific token for uploads. Designed for private repositories and closed-source projects.'
'When a token is required, your team must use a global or repo-specific token for uploads.'
)
expect(requiredDescription).toBeInTheDocument()
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ const TokenlessSection: React.FC = () => {
<Card>
<Card.Header>
<div className="flex items-center gap-2">
<h2 className="text-sm font-semibold">Token authentication</h2>
<h2 className="text-sm font-semibold">
Token authentication for public repositories
</h2>
<A
to={{
pageName: 'tokenlessDocs',
Expand Down Expand Up @@ -85,8 +87,7 @@ const TokenlessSection: React.FC = () => {
<RadioTileGroup.Description>
When a token is not required, your team can upload coverage
reports without one. Existing tokens will still work, and no
action is needed for past uploads. Designed for public open-source
projects.
action is needed for past uploads.
</RadioTileGroup.Description>
</RadioTileGroup.Item>
<RadioTileGroup.Item
Expand All @@ -96,8 +97,7 @@ const TokenlessSection: React.FC = () => {
<RadioTileGroup.Label>Required</RadioTileGroup.Label>
<RadioTileGroup.Description>
When a token is required, your team must use a global or
repo-specific token for uploads. Designed for private repositories
and closed-source projects.
repo-specific token for uploads.
</RadioTileGroup.Description>
</RadioTileGroup.Item>
</RadioTileGroup>
Expand Down

0 comments on commit ccd1705

Please sign in to comment.