diff --git a/frontend/src/pages/NewRun.test.tsx b/frontend/src/pages/NewRun.test.tsx index 79eeec8727a0..a5886c7634d7 100644 --- a/frontend/src/pages/NewRun.test.tsx +++ b/frontend/src/pages/NewRun.test.tsx @@ -396,28 +396,6 @@ describe('NewRun', () => { await TestUtils.flushPromises(); }); - it('converts an ApiPipeline into a Row for displaying in the selector table', () => { - tree = shallow(); - const instance = tree.instance() as TestNewRun; - - const pipeline = { - created_at: new Date(2018, 1, 2, 3, 4, 5), - description: 'a pipeline description', - id: 'a-pipeline-id', - name: 'a pipeline name', - }; - expect(instance.callResourceToRow(pipeline)).toEqual({ - error: undefined, - id: 'a-pipeline-id', - otherFields: [ - 'a pipeline name', - 'a pipeline description', - '2/2/2018, 3:04:05 AM', - ], - }); - }); - }); - describe('choosing an experiment', () => { it('opens up the experiment selector modal when users clicks \'Choose\'', async () => { tree = TestUtils.mountWithRouter(); @@ -497,27 +475,6 @@ describe('NewRun', () => { expect(tree.state('experimentSelectorOpen')).toBe(false); await TestUtils.flushPromises(); }); - - it('converts an ApiExperiment into a Row for displaying in the selector table', () => { - tree = shallow(); - const instance = tree.instance() as TestNewRun; - - const experiment = { - created_at: new Date(2018, 1, 2, 3, 4, 5), - description: 'a experiment description', - id: 'a-experiment-id', - name: 'a experiment name', - }; - expect(instance.callResourceToRow(experiment)).toEqual({ - error: undefined, - id: 'a-experiment-id', - otherFields: [ - 'a experiment name', - 'a experiment description', - '2/2/2018, 3:04:05 AM', - ], - }); - }); }); // TODO: Add test for when dialog is dismissed. Due to the particulars of how the Dialog element diff --git a/frontend/src/pages/NewRun.tsx b/frontend/src/pages/NewRun.tsx index 021da127fb66..3c512df1bb8c 100644 --- a/frontend/src/pages/NewRun.tsx +++ b/frontend/src/pages/NewRun.tsx @@ -188,9 +188,8 @@ class NewRun extends Page<{}, NewRunState> { columns={this.pipelineSelectorColumns} emptyMessage='No pipelines found. Upload a pipeline and then try again.' initialSortColumn={PipelineSortKeys.CREATED_AT} - resourceToRow={this._resourceToRow} selectionChanged={(selectedPipeline: ApiPipeline) => - this.setStateSafe({ unconfirmedSelectedPipeline: selectedPipeline })}/> + this.setStateSafe({ unconfirmedSelectedPipeline: selectedPipeline })} />