Skip to content

Commit cb46300

Browse files
authored
Add colons to setup DVC details (#3903)
1 parent 3179282 commit cb46300

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

webview/src/setup/components/App.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ describe('App', () => {
528528
const envDetails = screen.getByTestId('dvc-env-details')
529529
const firstVersionLine = `1.0.0 (required ${MIN_CLI_VERSION} and above, tested with ${LATEST_TESTED_CLI_VERSION})`
530530

531-
expect(within(envDetails).getByText('Version')).toBeInTheDocument()
531+
expect(within(envDetails).getByText('Version:')).toBeInTheDocument()
532532
expect(within(envDetails).getByText(firstVersionLine)).toBeInTheDocument()
533533
})
534534

@@ -553,7 +553,7 @@ describe('App', () => {
553553
const envDetails = screen.getByTestId('dvc-env-details')
554554
const version = `Not found (required ${MIN_CLI_VERSION} and above, tested with ${LATEST_TESTED_CLI_VERSION})`
555555

556-
expect(within(envDetails).getByText('Version')).toBeInTheDocument()
556+
expect(within(envDetails).getByText('Version:')).toBeInTheDocument()
557557
expect(within(envDetails).getByText(version)).toBeInTheDocument()
558558
})
559559

@@ -579,7 +579,7 @@ describe('App', () => {
579579

580580
const envDetails = screen.getByTestId('dvc-env-details')
581581

582-
expect(within(envDetails).getByText('Command')).toBeInTheDocument()
582+
expect(within(envDetails).getByText('Command:')).toBeInTheDocument()
583583
expect(within(envDetails).getByText(command)).toBeInTheDocument()
584584
})
585585

@@ -604,7 +604,7 @@ describe('App', () => {
604604

605605
const envDetails = screen.getByTestId('dvc-env-details')
606606

607-
expect(within(envDetails).getByText('Command')).toBeInTheDocument()
607+
expect(within(envDetails).getByText('Command:')).toBeInTheDocument()
608608

609609
const configureButton = within(envDetails).getByText('Configure')
610610
const selectButton = within(envDetails).queryByText(
@@ -642,7 +642,7 @@ describe('App', () => {
642642

643643
const envDetails = screen.getByTestId('dvc-env-details')
644644

645-
expect(within(envDetails).getByText('Command')).toBeInTheDocument()
645+
expect(within(envDetails).getByText('Command:')).toBeInTheDocument()
646646

647647
const configureButton = within(envDetails).getByText('Configure')
648648
const selectButton = within(envDetails).getByText(

webview/src/setup/components/dvc/DvcEnvInfoRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const DvcEnvInfoRow: React.FC<{
66
text: string | ReactElement
77
}> = ({ title, text }) => (
88
<tr>
9-
<td className={styles.envDetailsKey}>{title}</td>
9+
<td className={styles.envDetailsKey}>{title}:</td>
1010
<td className={styles.envDetailsValue}>{text}</td>
1111
</tr>
1212
)

0 commit comments

Comments
 (0)