Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Oct 14, 2024
1 parent 8b2388a commit 9710c9e
Showing 1 changed file with 23 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {MetadataTableWIP} from '@dagster-io/ui-components';
import {Meta} from '@storybook/react';

import {buildPipelineTag} from '../../graphql/types';
import {buildLaunchedBy, buildPipelineTag} from '../../graphql/types';
import {CreatedByTag} from '../CreatedByTag';
import {DagsterTag} from '../RunTag';
import {RunTagsFragment} from '../types/RunTagsFragment.types';
import {LaunchedByFragment} from '../types/launchedByFragment.types';

// eslint-disable-next-line import/no-default-export
export default {
Expand All @@ -20,81 +21,61 @@ export const Default = () => {
<td>User launched</td>
<td>
<CreatedByTag
tags={
[
buildPipelineTag({
key: DagsterTag.User,
value: '[email protected]',
}),
] as RunTagsFragment[]
}
launchedBy={buildLaunchedBy({kind: "user", tag: buildPipelineTag({
key: DagsterTag.User,
value: '[email protected]',
})}) as LaunchedByFragment}
/>
</td>
</tr>
<tr>
<td>Schedule</td>
<td>
<CreatedByTag
tags={
[
buildPipelineTag({
key: DagsterTag.ScheduleName,
value: 'my_cool_schedule',
}),
] as RunTagsFragment[]
}
launchedBy={buildLaunchedBy({kind: "schedule", tag: buildPipelineTag({
key: DagsterTag.ScheduleName,
value: 'my_cool_schedule',
})}) as LaunchedByFragment}
/>
</td>
</tr>
<tr>
<td>Sensor</td>
<td>
<CreatedByTag
tags={
[
buildPipelineTag({
key: DagsterTag.SensorName,
value: 'my_cool_sensor',
}),
] as RunTagsFragment[]
}
launchedBy={buildLaunchedBy({kind: "sensor", tag: buildPipelineTag({
key: DagsterTag.SensorName,
value: 'my_cool_sensor',
})}) as LaunchedByFragment}
/>
</td>
</tr>
<tr>
<td>Auto-materialize</td>
<td>
<CreatedByTag
tags={
[
buildPipelineTag({
key: DagsterTag.Automaterialize,
value: 'auto',
}),
] as RunTagsFragment[]
}
launchedBy={buildLaunchedBy({kind: "auto-materialize", tag: buildPipelineTag({
key: DagsterTag.Automaterialize,
value: 'auto',
})}) as LaunchedByFragment}
/>
</td>
</tr>
<tr>
<td>Auto-observation</td>
<td>
<CreatedByTag
tags={
[
buildPipelineTag({
key: DagsterTag.AutoObserve,
value: 'auto',
}),
] as RunTagsFragment[]
}
launchedBy={buildLaunchedBy({kind: "auto-observe", tag: buildPipelineTag({
key: DagsterTag.AutoObserve,
value: 'auto',
})}) as LaunchedByFragment}
/>
</td>
</tr>
<tr>
<td>Manually launched</td>
<td>
<CreatedByTag tags={[] as RunTagsFragment[]} />
<CreatedByTag launchedBy={[] as LaunchedByFragment} />
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 9710c9e

Please sign in to comment.