Skip to content

Commit

Permalink
remove .only from integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Aug 2, 2023
1 parent b7678e9 commit f73f850
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions extension/src/test/suite/experiments/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1297,27 +1297,24 @@ suite('Experiments Test Suite', () => {
expect(mockShowPlots).to.be.calledWith(dvcDemoPath)
}).timeout(WEBVIEW_TEST_TIMEOUT)

it.only(
'should be able to handle a message to toggle only changed columns',
async () => {
const { columnsModel, messageSpy, mockMessageReceived } =
await buildExperimentsWebview({
disposer: disposable
})

expect(columnsModel.getShowOnlyChanged()).to.be.false
messageSpy.resetHistory()

mockMessageReceived.fire({
type: MessageFromWebviewType.TOGGLE_SHOW_ONLY_CHANGED
it('should be able to handle a message to toggle only changed columns', async () => {
const { columnsModel, messageSpy, mockMessageReceived } =
await buildExperimentsWebview({
disposer: disposable
})

expect(columnsModel.getShowOnlyChanged()).to.be.true
expect(messageSpy).to.be.calledWithMatch({
showOnlyChanged: true
})
}
).timeout(WEBVIEW_TEST_TIMEOUT)
expect(columnsModel.getShowOnlyChanged()).to.be.false
messageSpy.resetHistory()

mockMessageReceived.fire({
type: MessageFromWebviewType.TOGGLE_SHOW_ONLY_CHANGED
})

expect(columnsModel.getShowOnlyChanged()).to.be.true
expect(messageSpy).to.be.calledWithMatch({
showOnlyChanged: true
})
}).timeout(WEBVIEW_TEST_TIMEOUT)

it('should handle a message to stop experiments running', async () => {
const { experiments, dvcExecutor } =
Expand Down

0 comments on commit f73f850

Please sign in to comment.