Skip to content

Instantly share code, notes, and snippets.


shankardevy/index.html.eex Secret

Last active Aug 1, 2017
What would you like to do?
<h1 class="page-title">Seasonal Products</h1>
<%= for product <- @seasonal_products do %>
<div class="product">
<div class="product-name"><%= %></div>
<div>₹ <span class="product-price"><%= product.price %></span></div>
<% end %>

This comment has been minimized.

Copy link

@ocwang ocwang commented Jul 19, 2017

I believe the page title be Seasonal Products instead of Seasonal Specials.

Here's the acceptance test (PDF pg. 96) we wrote:

page_title = find_element(:css, ".page-title") |> visible_text()
assert page_title == "Seasonal Products"

This comment has been minimized.

Copy link
Owner Author

@shankardevy shankardevy commented Aug 1, 2017

Thanks @ocwang. You are right. Correcting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment