Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix story
  • Loading branch information
aslilac committed Jun 11, 2025
commit 842c5bb82014672e23991c9571c9b4b8a236ffbe
6 changes: 6 additions & 0 deletions site/src/modules/resources/PortForwardButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { userEvent, within } from "@storybook/test";
import {
MockListeningPortsResponse,
MockSharedPortsResponse,
Expand Down Expand Up @@ -37,6 +38,11 @@ export const Example: Story = {
},
],
},
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
const button = canvas.getByRole("button");
await userEvent.click(button);
},
};

export const Loading: Story = {};
Loading