Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions webview/src/experiments/components/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,18 @@ describe('App', () => {
})
})

it('should not enable the user to share an experiment whilst an experiment is running', () => {
renderTable()

const target = screen.getByText('4fb124a')
fireEvent.contextMenu(target, { bubbles: true })

advanceTimersByTime(100)
const menuitems = screen.getAllByRole('menuitem')
const itemLabels = menuitems.map(item => item.textContent)
expect(itemLabels).not.toContain('Push')
})

it('should always present the Plots options if multiple rows are selected', () => {
renderTableWithoutRunningExperiments()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ const getSingleSelectMenuOptions = (
[id],
'Push',
MessageFromWebviewType.PUSH_EXPERIMENT,
isNotExperiment,
isNotExperiment || hasRunningExperiment,
true
),
...getRunResumeOptions(
Expand Down