Skip to content

Commit acb0d03

Browse files
committed
Add storybook test
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 54f2462 commit acb0d03

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

site/src/pages/DeploySettingsPage/GeneralSettingsPage/GeneralSettingsPageView.stories.tsx

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
MockEntitlementsWithUserLimit,
66
} from "testHelpers/entities";
77
import { GeneralSettingsPageView } from "./GeneralSettingsPageView";
8+
import {Experiments} from "../../../api/typesGenerated";
89

910
const meta: Meta<typeof GeneralSettingsPageView> = {
1011
title: "pages/DeploySettingsPage/GeneralSettingsPageView",
@@ -103,6 +104,43 @@ export const allExperimentsEnabled: Story = {
103104
hidden: false,
104105
},
105106
],
106-
safeExperiments: [],
107+
safeExperiments: ["shared-ports"],
108+
enabledExperiments: ["shared-ports"],
109+
},
110+
};
111+
112+
export const invalidExperimentsEnabled: Story = {
113+
args: {
114+
deploymentOptions: [
115+
{
116+
name: "Access URL",
117+
description:
118+
"The URL that users will use to access the Coder deployment.",
119+
flag: "access-url",
120+
flag_shorthand: "",
121+
value: "https://dev.coder.com",
122+
hidden: false,
123+
},
124+
{
125+
name: "Wildcard Access URL",
126+
description:
127+
'Specifies the wildcard hostname to use for workspace applications in the form "*.example.com".',
128+
flag: "wildcard-access-url",
129+
flag_shorthand: "",
130+
value: "*--apps.dev.coder.com",
131+
hidden: false,
132+
},
133+
{
134+
name: "Experiments",
135+
description:
136+
"Enable one or more experiments. These are not ready for production. Separate multiple experiments with commas, or enter '*' to opt-in to all available experiments.",
137+
flag: "experiments",
138+
value: ["invalid", "*"],
139+
flag_shorthand: "",
140+
hidden: false,
141+
},
142+
],
143+
safeExperiments: ["shared-ports"],
144+
enabledExperiments: ["invalid"],
107145
},
108146
};

0 commit comments

Comments
 (0)