|
5 | 5 | MockEntitlementsWithUserLimit,
|
6 | 6 | } from "testHelpers/entities";
|
7 | 7 | import { GeneralSettingsPageView } from "./GeneralSettingsPageView";
|
| 8 | +import {Experiments} from "../../../api/typesGenerated"; |
8 | 9 |
|
9 | 10 | const meta: Meta<typeof GeneralSettingsPageView> = {
|
10 | 11 | title: "pages/DeploySettingsPage/GeneralSettingsPageView",
|
@@ -103,6 +104,43 @@ export const allExperimentsEnabled: Story = {
|
103 | 104 | hidden: false,
|
104 | 105 | },
|
105 | 106 | ],
|
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"], |
107 | 145 | },
|
108 | 146 | };
|
0 commit comments