1
1
import {
2
+ MockFailedProvisionerJob ,
3
+ MockRunningProvisionerJob ,
2
4
MockTemplate ,
3
5
MockTemplateVersion ,
4
6
MockTemplateVersionFileTree ,
@@ -15,7 +17,7 @@ import { TemplateVersionEditor } from "./TemplateVersionEditor";
15
17
import type { Meta , StoryObj } from "@storybook/react" ;
16
18
17
19
const meta : Meta < typeof TemplateVersionEditor > = {
18
- title : "components /TemplateVersionEditor" ,
20
+ title : "pages /TemplateVersionEditor" ,
19
21
component : TemplateVersionEditor ,
20
22
args : {
21
23
template : MockTemplate ,
@@ -36,6 +38,10 @@ export const Logs = {
36
38
args : {
37
39
isBuildingNewVersion : true ,
38
40
buildLogs : MockWorkspaceBuildLogs ,
41
+ templateVersion : {
42
+ ...MockTemplateVersion ,
43
+ job : MockRunningProvisionerJob ,
44
+ } ,
39
45
} ,
40
46
} ;
41
47
@@ -60,7 +66,7 @@ export const ManyLogs = {
60
66
templateVersion : {
61
67
...MockTemplateVersion ,
62
68
job : {
63
- ...MockTemplateVersion . job ,
69
+ ...MockFailedProvisionerJob ,
64
70
error :
65
71
"template import provision for start: terraform plan: exit status 1" ,
66
72
} ,
0 commit comments