test 'more' count

This commit is contained in:
David Cook
2013-06-21 10:47:04 +10:00
parent 2d64e257ff
commit 38c0552362
2 changed files with 4 additions and 4 deletions

View File

@@ -77,8 +77,8 @@ scenario "viewing a list of distributors (with active products) in the sidebar w
# Then I should see a list containing 5 distributors that have products in stock
page.should have_selector '#distributor_filter li a', :count => 5
# And I should see 'xx more'
page.should have_selector '#distributor_filter span.filter_more', :text => 'more'
# And I should see '1 more'
page.should have_selector '#distributor_filter span.filter_more', :text => '1 more'
# And I should see a browse distributors button
page.should have_selector "#distributor_filter input[value='Browse All Distributors']"

View File

@@ -59,8 +59,8 @@ feature %q{
# Then I should see a list containing 5 suppliers that have products in stock
page.should have_selector '#supplier_filter li a', :count => 5
# And I should see 'xx more'
page.should have_selector '#supplier_filter span.filter_more', :text => 'more'
# And I should see '1 more'
page.should have_selector '#supplier_filter span.filter_more', :text => '1 more'
# And I should see a browse suppliers button
page.should have_selector "#supplier_filter input[value='Browse All Suppliers']"