Skip to content
Merged
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
18 changes: 8 additions & 10 deletions cms/static/coffee/spec/views/overview_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,20 @@ define ["js/views/overview", "js/views/feedback_notification", "sinon", "js/base
$('a.save-button').click()
expect(@notificationSpy).toHaveBeenCalled()

# Failing in Jenkins (passes locally).
# it "should delete model when delete is clicked", ->
# $('a.delete-section-button').click()
# $('a.action-primary').click()
# expect(@requests[0].url).toEqual('/delete_item')
it "should delete model when delete is clicked", ->
$('a.delete-section-button').click()
$('a.action-primary').click()
expect(@requests[0].url).toEqual('/delete_item')

it "should not delete model when cancel is clicked", ->
$('a.delete-section-button').click()
$('a.action-secondary').click()
expect(@requests.length).toEqual(0)

# Failing in Jenkins (passes locally).
# it "should show a confirmation on delete", ->
# $('a.delete-section-button').click()
# $('a.action-primary').click()
# expect(@notificationSpy).toHaveBeenCalled()
it "should show a confirmation on delete", ->
$('a.delete-section-button').click()
$('a.action-primary').click()
expect(@notificationSpy).toHaveBeenCalled()

describe "findDestination", ->
it "correctly finds the drop target of a drag", ->
Expand Down