Fix failing API specs

This commit is contained in:
Rob H
2014-04-23 12:02:27 +10:00
parent 353b26c3df
commit 669ec0eee7
2 changed files with 6 additions and 6 deletions

View File

@@ -507,7 +507,7 @@ feature %q{
before :each do
visit '/admin/orders/bulk_management'
within "tr#li_#{li3.id}" do
click_link li3.variant.options_text
find("a", text: li3.product.name + ": " + li3.variant.options_text).click
end
end
@@ -542,7 +542,7 @@ feature %q{
context "clicking 'Clear' in group buy box" do
before :each do
click_link 'Clear'
find("a", text: "Clear").click
end
it "shows all products and clears group buy box" do

View File

@@ -237,7 +237,7 @@ feature %q{
visit '/admin/products/bulk_edit'
click_link 'New Product'
find("a", text: "New Product").click
page.should have_content 'NEW PRODUCT'
@@ -783,7 +783,7 @@ feature %q{
select '25', :from => 'perPage'
page.all("input[name='product_name']").select{ |e| e.visible? }.all?{ |e| e.value == "page1product" }.should == true
click_link "2"
find("a", text: "2").click
page.all("input[name='product_name']").select{ |e| e.visible? }.all?{ |e| e.value == "page2product" }.should == true
end
@@ -795,7 +795,7 @@ feature %q{
visit '/admin/products/bulk_edit'
select '25', :from => 'perPage'
click_link "3"
find("a", text: "3").click
select '50', :from => 'perPage'
page.first("div.pagenav span.page.current").should have_text "2"
page.all("input[name='product_name']", :visible => true).length.should == 1
@@ -869,7 +869,7 @@ feature %q{
describe "clicking the 'Remove Filter' link" do
before(:each) do
click_link "Remove Filter"
find("a", text: "Remove Filter").click
end
it "removes the filter from the list of applied filters" do