mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
test 'more' count
This commit is contained in:
@@ -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']"
|
||||
|
||||
@@ -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']"
|
||||
|
||||
Reference in New Issue
Block a user