File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
site/src/pages/WorkspacePage Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import {
19
19
MockDeletingWorkspace ,
20
20
MockDeletedWorkspace ,
21
21
MockBuilds ,
22
+ MockTemplateVersion3 ,
22
23
} from "testHelpers/entities"
23
24
import * as api from "../../api/api"
24
25
import { Workspace } from "../../api/typesGenerated"
@@ -351,4 +352,18 @@ describe("WorkspacePage", () => {
351
352
expect ( rows ) . toHaveLength ( MockBuilds . length + 1 )
352
353
} )
353
354
} )
355
+
356
+ it ( "shows the template warnings" , async ( ) => {
357
+ server . use (
358
+ rest . get (
359
+ "/api/v2/templateversions/:templateVersionId" ,
360
+ async ( req , res , ctx ) => {
361
+ return res ( ctx . status ( 200 ) , ctx . json ( MockTemplateVersion3 ) )
362
+ } ,
363
+ ) ,
364
+ )
365
+
366
+ await renderWorkspacePage ( )
367
+ await screen . findByTestId ( "warning-deprecated-parameters" )
368
+ } )
354
369
} )
You can’t perform that action at this time.
0 commit comments