Skip to content

Commit

Permalink
Add "(pip)" to setup install button (#4013)
Browse files Browse the repository at this point in the history
  • Loading branch information
julieg18 authored May 31, 2023
1 parent acfd8f9 commit 4ab0a46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions webview/src/setup/components/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe('App', () => {
`DVC & DVCLive can be auto-installed as packages with ${defaultInterpreter}`
)
).toBeInTheDocument()
expect(screen.getByText('Install')).toBeInTheDocument()
expect(screen.getByText('Install (pip)')).toBeInTheDocument()
})

it('should let the user find another Python interpreter to install DVC when the Python extension is not installed', () => {
Expand Down Expand Up @@ -215,7 +215,7 @@ describe('App', () => {
pythonBinPath: 'python'
})

const button = screen.getByText('Install')
const button = screen.getByText('Install (pip)')
fireEvent.click(button)

expect(mockPostMessage).toHaveBeenCalledWith({
Expand Down
2 changes: 1 addition & 1 deletion webview/src/setup/components/dvc/CliUnavailable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const CliUnavailable: React.FC<PropsWithChildren> = ({ children }) => {
DVC & DVCLive can be auto-installed as packages with {pythonBinPath}
</p>
<div className={styles.sideBySideButtons}>
<Button onClick={installDvc} text="Install" />
<Button onClick={installDvc} text="Install (pip)" />
<Button onClick={setupWorkspace} text="Configure" />
</div>
</>
Expand Down
8 changes: 4 additions & 4 deletions webview/src/stories/Setup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ CompletedConnected.args = getUpdatedArgs({
shareLiveToStudio: true
})

export const NoCLIPythonNotFound = Template.bind({})
NoCLIPythonNotFound.args = getUpdatedArgs({
export const CLIPythonNotFound = Template.bind({})
CLIPythonNotFound.args = getUpdatedArgs({
cliCompatible: undefined,
dvcCliDetails: {
command: 'dvc',
Expand All @@ -109,8 +109,8 @@ NoCLIPythonNotFound.args = getUpdatedArgs({
pythonBinPath: undefined
})

export const NoCLIPythonFound = Template.bind({})
NoCLIPythonFound.args = getUpdatedArgs({
export const CLIPythonFound = Template.bind({})
CLIPythonFound.args = getUpdatedArgs({
cliCompatible: undefined,
dvcCliDetails: {
command: '/opt/homebrew/Caskroom/miniforge/base/bin/python -m dvc',
Expand Down

0 comments on commit 4ab0a46

Please sign in to comment.