Skip to content

Commit 58802a6

Browse files
authored
Update copy in add stage component (#4292)
1 parent 62f5f51 commit 58802a6

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

webview/src/experiments/components/AddStage.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ import { addConfiguration } from '../util/messages'
77
export const AddStage: React.FC = () => (
88
<div className={styles.addConfigButton}>
99
<p>
10-
Define a{' '}
11-
<a href="https://dvc.org/doc/user-guide/pipelines/defining-pipelines">
12-
pipeline
10+
Create a{' '}
11+
<a href="https://dvc.org/doc/user-guide/project-structure/dvcyaml-files">
12+
dvc.yaml
1313
</a>{' '}
14-
to improve experiment reproducibility.
14+
to run, queue and pass parameters to new experiments.
1515
</p>
1616
<IconButton
1717
icon={Add}
1818
onClick={() => addConfiguration()}
19-
text="Add Stage"
19+
text="Add dvc.yaml"
2020
/>
2121
<p>
2222
Learn more about{' '}
23-
<a href="https://dvc.org/doc/user-guide/project-structure/dvcyaml-files">
24-
dvc.yaml
23+
<a href="https://dvc.org/doc/user-guide/pipelines/defining-pipelines">
24+
pipelines
2525
</a>{' '}
26-
files.
26+
.
2727
</p>
2828
</div>
2929
)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,20 +1740,20 @@ describe('App', () => {
17401740
renderTable()
17411741
setTableData({ ...tableDataFixture, hasConfig: false })
17421742

1743-
expect(screen.getByText('Add Stage')).toBeInTheDocument()
1743+
expect(screen.getByText('Add dvc.yaml')).toBeInTheDocument()
17441744
})
17451745

17461746
it('should not show a add config button if the project has pipeline stages', () => {
17471747
renderTable()
17481748

1749-
expect(screen.queryByText('Add Stage')).not.toBeInTheDocument()
1749+
expect(screen.queryByText('Add dvc.yaml')).not.toBeInTheDocument()
17501750
})
17511751

17521752
it('should send a message to the extension to add a pipeline stage when clicking on the add config button', () => {
17531753
renderTable()
17541754
setTableData({ ...tableDataFixture, hasConfig: false })
17551755

1756-
fireEvent.click(screen.getByText('Add Stage'))
1756+
fireEvent.click(screen.getByText('Add dvc.yaml'))
17571757

17581758
expect(mockPostMessage).toHaveBeenCalledWith({
17591759
type: MessageFromWebviewType.ADD_CONFIGURATION

0 commit comments

Comments
 (0)