Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Oct 15, 2024
1 parent 1dbe97a commit d726614
Showing 1 changed file with 53 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {Meta} from '@storybook/react';
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
Expand All @@ -21,61 +20,93 @@ export const Default = () => {
<td>User launched</td>
<td>
<CreatedByTag
launchedBy={buildLaunchedBy({kind: "user", tag: buildPipelineTag({
key: DagsterTag.User,
value: '[email protected]',
})}) as LaunchedByFragment}
launchedBy={
buildLaunchedBy({
kind: 'user',
tag: buildPipelineTag({
key: DagsterTag.User,
value: '[email protected]',
}),
}) as LaunchedByFragment
}
/>
</td>
</tr>
<tr>
<td>Schedule</td>
<td>
<CreatedByTag
launchedBy={buildLaunchedBy({kind: "schedule", tag: buildPipelineTag({
key: DagsterTag.ScheduleName,
value: 'my_cool_schedule',
})}) as LaunchedByFragment}
launchedBy={
buildLaunchedBy({
kind: 'schedule',
tag: buildPipelineTag({
key: DagsterTag.ScheduleName,
value: 'my_cool_schedule',
}),
}) as LaunchedByFragment
}
/>
</td>
</tr>
<tr>
<td>Sensor</td>
<td>
<CreatedByTag
launchedBy={buildLaunchedBy({kind: "sensor", tag: buildPipelineTag({
key: DagsterTag.SensorName,
value: 'my_cool_sensor',
})}) as LaunchedByFragment}
launchedBy={
buildLaunchedBy({
kind: 'sensor',
tag: buildPipelineTag({
key: DagsterTag.SensorName,
value: 'my_cool_sensor',
}),
}) as LaunchedByFragment
}
/>
</td>
</tr>
<tr>
<td>Auto-materialize</td>
<td>
<CreatedByTag
launchedBy={buildLaunchedBy({kind: "auto-materialize", tag: buildPipelineTag({
key: DagsterTag.Automaterialize,
value: 'auto',
})}) as LaunchedByFragment}
launchedBy={
buildLaunchedBy({
kind: 'auto-materialize',
tag: buildPipelineTag({
key: DagsterTag.Automaterialize,
value: 'auto',
}),
}) as LaunchedByFragment
}
/>
</td>
</tr>
<tr>
<td>Auto-observation</td>
<td>
<CreatedByTag
launchedBy={buildLaunchedBy({kind: "auto-observe", tag: buildPipelineTag({
key: DagsterTag.AutoObserve,
value: 'auto',
})}) as LaunchedByFragment}
launchedBy={
buildLaunchedBy({
kind: 'auto-observe',
tag: buildPipelineTag({
key: DagsterTag.AutoObserve,
value: 'auto',
}),
}) as LaunchedByFragment
}
/>
</td>
</tr>
<tr>
<td>Manually launched</td>
<td>
<CreatedByTag launchedBy={[] as LaunchedByFragment} />
<CreatedByTag
launchedBy={
buildLaunchedBy({
kind: 'manual',
tag: buildPipelineTag({key: '', value: ''}),
}) as LaunchedByFragment
}
/>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit d726614

Please sign in to comment.