@@ -147,7 +147,6 @@ describe('App', () => {
147147 / D V C & D V C L i v e c a n n o t b e a u t o - i n s t a l l e d a s P y t h o n w a s n o t l o c a t e d ./
148148 )
149149 ) . toBeInTheDocument ( )
150- expect ( screen . queryByText ( 'Install' ) ) . not . toBeInTheDocument ( )
151150 } )
152151
153152 it ( 'should tell the user they can auto-install DVC with a Python interpreter' , ( ) => {
@@ -169,7 +168,7 @@ describe('App', () => {
169168 expect ( screen . getByText ( 'Install (pip)' ) ) . toBeInTheDocument ( )
170169 } )
171170
172- it ( 'should let the user find another Python interpreter to install DVC when the Python extension is not installed' , ( ) => {
171+ it ( 'should let the user locate DVC when the Python extension is not installed' , ( ) => {
173172 renderApp ( {
174173 cliCompatible : undefined ,
175174 dvcCliDetails : {
@@ -187,6 +186,24 @@ describe('App', () => {
187186 } )
188187 } )
189188
189+ it ( 'should show python extension info when dvc is unavailable and Python extension is not installed' , ( ) => {
190+ renderApp ( {
191+ cliCompatible : undefined ,
192+ dvcCliDetails : {
193+ command : 'python -m dvc' ,
194+ version : undefined
195+ }
196+ } )
197+
198+ const infoText = screen . getByText ( / d e t e c t o r c r e a t e p y t h o n e n v i r o n m e n t s / )
199+
200+ expect ( infoText ) . toBeInTheDocument ( )
201+
202+ sendSetDataMessage ( { ...DEFAULT_DATA , isPythonExtensionUsed : true } )
203+
204+ expect ( infoText ) . not . toBeInTheDocument ( )
205+ } )
206+
190207 it ( 'should let the user find or create another Python interpreter to install DVC when the Python extension is installed' , ( ) => {
191208 renderApp ( {
192209 cliCompatible : undefined ,
0 commit comments