You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR [WIP] request where you can view the code is here
Installed cartify gem according to instructions.
Configured cartify gem according to instructions.
Used cartify method add_to_cart and shop_icon_quantity in our code.
Although when we launch the rails server we see everything working as expected, during the cucumber test to click the "Add" link we are thrown the error of the title.
Story
As a visitor,
In order to select products I want to buy
I would like to be able to add products to an order
Spec
When I click "Add" link on "Pizza"
When("I click {string} link on {string}")do |element,product_name|
product=Product.find_by(name: product_name)within("#product_#{product.id}")doclick_onelementendend
Screenshots
bundle exec cucumber without Javascript enabled
bundle exec cucumber witht Javascript enabled & chrome driver version 2.33 (the default when we did the installation)
bundle exec cucumber witht Javascript enabled & chrome driver version 2.42 (the one Faraz put on the demo video)
binding.pry at the point of the non passing step
How did you try to solve the problem?
Searched on the internet without finding anything specific
Looked at official cartify GitHub with no luck
Tried to move the div to different places in case it did any difference
Tried to move the shop_icon_quantity outside the NavBar in case it did any difference
Watched the relevant videos of Faraz & Thomas
Removed the "Pizza" from the cucumber step but still it cannot click the link
The text was updated successfully, but these errors were encountered:
Problem
Installed cartify gem according to instructions.
Configured cartify gem according to instructions.
Used cartify method
add_to_cart
andshop_icon_quantity
in our code.Although when we launch the
rails server
we see everything working as expected, during the cucumber test to click the "Add" link we are thrown the error of the title.Story
Spec
When I click "Add" link on "Pizza"
Screenshots
bundle exec cucumber
without Javascript enabledbundle exec cucumber
witht Javascript enabled & chrome driver version 2.33 (the default when we did the installation)bundle exec cucumber
witht Javascript enabled & chrome driver version 2.42 (the one Faraz put on the demo video)binding.pry
at the point of the non passing stepHow did you try to solve the problem?
div
to different places in case it did any differenceshop_icon_quantity
outside the NavBar in case it did any differenceThe text was updated successfully, but these errors were encountered: