spec: 3340306 show mark done button for lti assignments

Change-Id: I0a3231c11d7a54552d503d81d016e23f20d694dc
Reviewed-on: https://gerrit.instructure.com/126148
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
This commit is contained in:
Heath Hales 2017-09-14 13:40:23 -06:00
parent e6caa8b31e
commit 7eee53c27a
1 changed files with 20 additions and 0 deletions

View File

@ -473,6 +473,26 @@ describe "context modules" do
end
end
it "shows Mark as Done button for assignments with external tool submission", priority: "2", test_id: 3340306 do
tool = @course.context_external_tools.create!(name: "a",
url: "example.com",
consumer_key: '12345',
shared_secret: 'secret')
@assignment = @course.assignments.create!
@assignment.tool_settings_tool = tool
@assignment.submission_types = "external_tool"
@assignment.external_tool_tag_attributes = {url: tool.url}
@assignment.save!
@mark_done_module = create_context_module('Mark Done Module')
@tag = @mark_done_module.add_item({id: @assignment.id, type: 'assignment'})
@mark_done_module.completion_requirements = {@tag.id => {type: 'must_mark_done'}}
@mark_done_module.save!
get "/courses/#{@course.id}/assignments/#{@assignment.id}"
expect(f('#content')).to contain_css('#mark-as-done-checkbox')
end
describe "module header icons" do
def create_additional_assignment_for_module_1
@assignment_4 = @course.assignments.create!(:title => "assignment 4")