Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update copy for tokenless tab #3633

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading