File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,13 @@ export const WithoutUpdateAccess: Story = {
98
98
} ,
99
99
}
100
100
101
+ export const PendingInQueue : Story = {
102
+ args : {
103
+ ...Running . args ,
104
+ workspace : Mocks . MockPendingWorkspace ,
105
+ } ,
106
+ }
107
+
101
108
export const Starting : Story = {
102
109
args : {
103
110
...Running . args ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
15
15
MockExperiments ,
16
16
mockApiError ,
17
17
MockUser ,
18
+ MockPendingProvisionerJob ,
18
19
} from "testHelpers/entities"
19
20
import { WorkspacesPageView } from "./WorkspacesPageView"
20
21
import { DashboardProviderContext } from "components/Dashboard/DashboardProvider"
@@ -33,6 +34,10 @@ const createWorkspace = (
33
34
latest_build : {
34
35
...MockWorkspace . latest_build ,
35
36
status,
37
+ job :
38
+ status === "pending"
39
+ ? MockPendingProvisionerJob
40
+ : MockWorkspace . latest_build . job ,
36
41
} ,
37
42
last_used_at : lastUsedAt ,
38
43
}
Original file line number Diff line number Diff line change @@ -310,6 +310,8 @@ export const MockRunningProvisionerJob: TypesGen.ProvisionerJob = {
310
310
export const MockPendingProvisionerJob : TypesGen . ProvisionerJob = {
311
311
...MockProvisionerJob ,
312
312
status : "pending" ,
313
+ queue_position : 2 ,
314
+ queue_size : 4 ,
313
315
}
314
316
export const MockTemplateVersion : TypesGen . TemplateVersion = {
315
317
id : "test-template-version" ,
You can’t perform that action at this time.
0 commit comments