We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b80b304 commit 0b99e06Copy full SHA for 0b99e06
site/src/pages/WorkspacePage/WorkspaceActions/WorkspaceActions.stories.tsx
@@ -206,6 +206,18 @@ export const OpenDownloadLogs: Story = {
206
},
207
};
208
209
+export const CanDeleteDormantWorkspace: Story = {
210
+ args: {
211
+ workspace: Mocks.MockDormantWorkspace,
212
+ },
213
+ play: async ({ canvasElement }) => {
214
+ const canvas = within(canvasElement);
215
+ await userEvent.click(canvas.getByRole("button", { name: "More options" }));
216
+ const deleteButton = canvas.getByText("Delete…");
217
+ await expect(deleteButton).toBeEnabled();
218
219
+};
220
+
221
function generateLogs(count: number) {
222
return Array.from({ length: count }, (_, i) => ({
223
output: `log ${i + 1}`,
0 commit comments