This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
77 additions
and
10 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
...sk/taskTabs/buildBaronAndAnnotations/CreatedTicketsTable/CustomCreatedTickets.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import WithToastContext from "test_utils/toast-decorator"; | ||
import { CustomMeta, CustomStoryObj } from "test_utils/types"; | ||
import CustomCreatedTickets from "./CustomCreatedTickets"; | ||
|
||
export default { | ||
component: CustomCreatedTickets, | ||
decorators: [(Story: () => JSX.Element) => WithToastContext(Story)], | ||
} satisfies CustomMeta<typeof CustomCreatedTickets>; | ||
|
||
export const Default: CustomStoryObj<typeof CustomCreatedTickets> = { | ||
render: (args) => <CustomCreatedTickets {...args} />, | ||
argTypes: {}, | ||
args: { | ||
execution: 0, | ||
taskId: "123", | ||
tickets: [ | ||
{ | ||
confidenceScore: 0.25, | ||
issueKey: "DEVPROD-1", | ||
jiraTicket: { | ||
key: "key", | ||
fields: { | ||
summary: "Issue Summary", | ||
status: { | ||
id: "id", | ||
name: "Done", | ||
}, | ||
created: "2020-01-27", | ||
updated: "2023-11-28", | ||
assigneeDisplayName: "sophie.stadler", | ||
assignedTeam: "evg-ui", | ||
}, | ||
}, | ||
url: "https://spruce.mongodb.com", | ||
}, | ||
{ | ||
confidenceScore: 0.5, | ||
issueKey: "DEVPROD-2", | ||
jiraTicket: { | ||
key: "key", | ||
fields: { | ||
summary: "Issue Summary", | ||
status: { | ||
id: "id", | ||
name: "In Progress", | ||
}, | ||
created: "2020-01-28", | ||
updated: "2023-11-29", | ||
assigneeDisplayName: "mohamed.khelif", | ||
assignedTeam: "evg-ui", | ||
}, | ||
}, | ||
url: "https://spruce.mongodb.com", | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters