@@ -1740,20 +1740,20 @@ describe('App', () => {
17401740 renderTable ( )
17411741 setTableData ( { ...tableDataFixture , hasConfig : false } )
17421742
1743- expect ( screen . getByText ( 'Add a Pipeline Stage' ) ) . toBeInTheDocument ( )
1743+ expect ( screen . getByText ( 'Add Stage' ) ) . 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 a Pipeline Stage' ) ) . not . toBeInTheDocument ( )
1749+ expect ( screen . queryByText ( 'Add Stage' ) ) . 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 a Pipeline Stage' ) )
1756+ fireEvent . click ( screen . getByText ( 'Add Stage' ) )
17571757
17581758 expect ( mockPostMessage ) . toHaveBeenCalledWith ( {
17591759 type : MessageFromWebviewType . ADD_CONFIGURATION
@@ -1767,7 +1767,7 @@ describe('App', () => {
17671767 hasConfig : false ,
17681768 hasValidDvcYaml : false
17691769 } )
1770- const addPipelineButton = await screen . findByText ( 'Add a Pipeline Stage' )
1770+ const addPipelineButton = await screen . findByText ( 'Add Stage' )
17711771
17721772 fireEvent . click ( addPipelineButton )
17731773
@@ -1776,9 +1776,7 @@ describe('App', () => {
17761776 } )
17771777
17781778 expect (
1779- screen . getByText (
1780- 'Your dvc.yaml file should contain valid yaml before adding any pipeline stages.'
1781- )
1779+ screen . getByText ( 'A stage cannot be added to an invalid dvc.yaml file.' )
17821780 ) . toBeInTheDocument ( )
17831781 } )
17841782 } )
0 commit comments