Skip to content

Commit

Permalink
refactor: update label for redirect button
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Sep 11, 2024
1 parent 416642a commit 65693c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/ManualInstall/ManualInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const UploadButton = () => {
actions: options?.id
? [
{
label: i18n.t('Go to app'),
label: i18n.t('View app details'),
onClick: () => {
history.push(`/app/${options.id}`)
},
Expand Down
6 changes: 3 additions & 3 deletions src/pages/ManualInstall/ManualInstall.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('Manual Install', () => {
userEvent.upload(fileInput, 'testfile')

await findByText('App installed successfully')
await userEvent.click(getByText('Go to app'))
await userEvent.click(getByText('View app details'))
expect(historyPush).toHaveBeenCalledWith('/app/some_apphub_id')
})

Expand All @@ -71,7 +71,7 @@ describe('Manual Install', () => {
userEvent.upload(fileInput, 'testfile')

await findByText('App installed successfully')
expect(queryByText('Go to app')).not.toBeInTheDocument()
expect(queryByText('View app details')).not.toBeInTheDocument()
expect(historyPush).not.toHaveBeenCalled()
})

Expand All @@ -86,7 +86,7 @@ describe('Manual Install', () => {
userEvent.upload(fileInput, 'testfile')

await findByText('Failed to install app:')
expect(queryByText('Go to app')).not.toBeInTheDocument()
expect(queryByText('View app details')).not.toBeInTheDocument()
expect(historyPush).not.toHaveBeenCalled()
})
})

0 comments on commit 65693c8

Please sign in to comment.