Skip to content

Commit

Permalink
removed redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Aug 12, 2024
1 parent a1af052 commit da53912
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -857,17 +857,6 @@ describe('ProtocolRunHeader', () => {

screen.getByText('Run completed with warnings.')
})
it('clicking close on a terminal run banner closes the run context', async () => {
vi.mocked(useNotifyRunQuery).mockReturnValue({
data: { data: mockSucceededRun },
} as UseQueryResult<OpentronsApiClient.Run>)
when(vi.mocked(useRunStatus))
.calledWith(RUN_ID)
.thenReturn(RUN_STATUS_SUCCEEDED)
render()

fireEvent.click(screen.queryAllByTestId('Banner_close-button')[0])
})

it('does not display the "run successful" banner if the successful run is not current', async () => {
when(vi.mocked(useNotifyRunQuery))
Expand Down

0 comments on commit da53912

Please sign in to comment.