Skip to content
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
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({})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed this typo while looking at storybook.

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