BPUR: Fix final unstable tests, js concurrency etc.

This commit is contained in:
Rob H
2013-06-26 16:45:50 +05:30
committed by Rohan Mitchell
parent ba840124d2
commit f169dcda88
4 changed files with 94 additions and 53 deletions

View File

@@ -301,7 +301,7 @@ feature %q{
first("a.delete-product").click
page.driver.browser.switch_to.alert.accept
page.should have_selector "a.delete-product"
sleep(0.1) if page.has_selector? "a.delete-product", :count => 3
page.should have_selector "a.delete-product", :count => 2
#page.should have_selector "div.flash.notice", text: "Product has been deleted."