[#4178] Fixing integration tests based on the UI changes.
This commit is contained in:
@@ -29,7 +29,7 @@ class ContractsEditTest < ActionController::IntegrationTest
|
||||
end
|
||||
|
||||
fill_in "Name", :with => 'An updated name'
|
||||
click_button "Update Contract"
|
||||
click_button "Save Contract"
|
||||
|
||||
assert_response :success
|
||||
assert_template 'contracts/show'
|
||||
|
||||
@@ -30,7 +30,7 @@ class ContractsNewTest < ActionController::IntegrationTest
|
||||
fill_in "End Date", :with => '2010-12-31'
|
||||
select "Net 30", :from => "Payment Terms"
|
||||
|
||||
click_button "Create Contract"
|
||||
click_button "Save Contract"
|
||||
|
||||
assert_response :success
|
||||
assert_template 'contracts/show'
|
||||
|
||||
@@ -15,7 +15,7 @@ class ContractsShowTest < ActionController::IntegrationTest
|
||||
assert_template 'contracts/show'
|
||||
assert_equal "/projects/main/contracts/#{@contract.id}", current_url
|
||||
|
||||
assert_select "div#contract_#{@contract.id}.contract" do
|
||||
assert_select "div.title-bar" do
|
||||
assert_select 'h2', :text => @contract.name
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,7 +13,7 @@ class DeliverablesDeleteTest < ActionController::IntegrationTest
|
||||
should "allow anyone to delete the deliverable" do
|
||||
visit_contract_page(@contract)
|
||||
|
||||
click_link_within "#fixed_deliverable_#{@deliverable.id}", 'Delete'
|
||||
click_link_within "#deliverable_details_#{@deliverable.id}", 'Delete'
|
||||
assert_response :success
|
||||
assert_template 'contracts/show'
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class DeliverablesEditTest < ActionController::IntegrationTest
|
||||
|
||||
should "allow any user to edit the Fixed deliverable" do
|
||||
visit_contract_page(@contract)
|
||||
click_link_within "#fixed_deliverable_#{@fixed_deliverable.id}", 'Edit'
|
||||
click_link_within "#deliverable_details_#{@fixed_deliverable.id}", 'Edit'
|
||||
assert_response :success
|
||||
assert_template 'deliverables/edit'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user