File tree 1 file changed +37
-0
lines changed
site/src/pages/WorkspacesPage
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import {
23
23
MockTemplate ,
24
24
MockUserOwner ,
25
25
MockWorkspace ,
26
+ MockWorkspaceAgent ,
26
27
MockWorkspaceAppStatus ,
27
28
mockApiError ,
28
29
} from "testHelpers/entities" ;
@@ -299,6 +300,42 @@ export const InvalidPageNumber: Story = {
299
300
} ,
300
301
} ;
301
302
303
+ export const MultipleApps : Story = {
304
+ args : {
305
+ workspaces : [
306
+ {
307
+ ...MockWorkspace ,
308
+ latest_build : {
309
+ ...MockWorkspace . latest_build ,
310
+ resources : [
311
+ {
312
+ ...MockWorkspace . latest_build . resources [ 0 ] ,
313
+ agents : [
314
+ {
315
+ ...MockWorkspaceAgent ,
316
+ apps : [
317
+ {
318
+ ...MockWorkspaceAgent . apps [ 0 ] ,
319
+ display_name : "App 1" ,
320
+ id : "app-1" ,
321
+ } ,
322
+ {
323
+ ...MockWorkspaceAgent . apps [ 0 ] ,
324
+ display_name : "App 2" ,
325
+ id : "app-2" ,
326
+ } ,
327
+ ] ,
328
+ } ,
329
+ ] ,
330
+ } ,
331
+ ] ,
332
+ } ,
333
+ } ,
334
+ ] ,
335
+ count : allWorkspaces . length ,
336
+ } ,
337
+ } ;
338
+
302
339
export const ShowOrganizations : Story = {
303
340
args : {
304
341
workspaces : [ { ...MockWorkspace , organization_name : "limbus-co" } ] ,
You can’t perform that action at this time.
0 commit comments