Change artifact link button wording (#17037)

This commit is contained in:
Jinjing
2026-08-28 09:38:10 -07:00
committed by GitHub
parent c226a655ad
commit ee1e002d00
3 changed files with 5 additions and 5 deletions
@@ -97,7 +97,7 @@ describe('ArtifactPublishButton', () => {
await user.click(screen.getByRole('button', { name: 'Share as artifact' }))
expect(mocks.publish).not.toHaveBeenCalled()
await user.click(await screen.findByRole('button', { name: 'Share public link' }))
await user.click(await screen.findByRole('button', { name: 'Generate link' }))
await waitFor(() => expect(mocks.publish).toHaveBeenCalledWith(createRequest))
expect(screen.getByText('https://example.com')).toBeInTheDocument()
expect(screen.getByRole('button', { name: 'Update shared content' })).toBeInTheDocument()
@@ -108,7 +108,7 @@ describe('ArtifactPublishButton', () => {
mocks.state.orcaProfileAuthStatus = { configured: true, state: 'local' }
render(<ArtifactPublishButton sourceKey="/repo/report.md" createRequest={vi.fn()} />)
expect(await screen.findByRole('button', { name: 'Share public link' })).toBeDisabled()
expect(await screen.findByRole('button', { name: 'Generate link' })).toBeDisabled()
await user.click(screen.getByRole('button', { name: 'Sign in' }))
expect(mocks.connect).toHaveBeenCalledOnce()
@@ -121,7 +121,7 @@ describe('ArtifactPublishButton', () => {
render(<ArtifactPublishButton sourceKey="/repo/report.md" createRequest={vi.fn()} />)
await user.click(screen.getByRole('button', { name: 'Share as artifact' }))
expect(await screen.findByRole('button', { name: 'Share public link' })).toBeDisabled()
expect(await screen.findByRole('button', { name: 'Generate link' })).toBeDisabled()
await user.click(screen.getByRole('button', { name: 'Open Artifacts settings' }))
expect(mocks.openSettingsTarget).toHaveBeenCalledWith({ pane: 'artifacts', repoId: null })
@@ -284,7 +284,7 @@ export function ArtifactPublishButton({
? translate('auto.components.artifacts.ArtifactPublishButton.sharing', 'Sharing…')
: translate(
'auto.components.artifacts.ArtifactPublishButton.sharePublicLink',
'Share public link'
'Generate link'
)}
</Button>
)}
+1 -1
View File
@@ -16307,7 +16307,7 @@
"publishingOffDescription": "Learn about public links and enable sharing in Settings.",
"openSettings": "Open Artifacts settings",
"sharing": "Sharing…",
"sharePublicLink": "Share public link",
"sharePublicLink": "Generate link",
"publishedDescription": "Anyone with this link can view the shared file.",
"checkingLink": "Checking for an existing link…",
"checkFailed": "Could not check for an existing link.",