Skip to content

Commit 7e41c15

Browse files
committed
add port forward test
1 parent 2e1c31f commit 7e41c15

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

site/src/modules/resources/AgentDevcontainerCard.stories.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import type { Meta, StoryObj } from "@storybook/react";
22
import type { WorkspaceAgentDevcontainer } from "api/typesGenerated";
3+
import { getPreferredProxy } from "contexts/ProxyContext";
34
import { chromatic } from "testHelpers/chromatic";
45
import {
56
MockListeningPortsResponse,
7+
MockPrimaryWorkspaceProxy,
68
MockTemplate,
79
MockWorkspace,
810
MockWorkspaceAgent,
911
MockWorkspaceAgentContainer,
1012
MockWorkspaceAgentContainerPorts,
1113
MockWorkspaceApp,
14+
MockWorkspaceProxies,
1215
MockWorkspaceSubAgent,
1316
} from "testHelpers/entities";
1417
import {
@@ -144,3 +147,12 @@ export const WithAppsAndPorts: Story = {
144147
],
145148
},
146149
};
150+
151+
export const ShowingPortForward: Story = {
152+
decorators: [
153+
withProxyProvider({
154+
proxy: getPreferredProxy(MockWorkspaceProxies, MockPrimaryWorkspaceProxy),
155+
proxies: MockWorkspaceProxies,
156+
}),
157+
],
158+
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy