Read more

Versatile Cucumber step regarding hovering above elements

Dominik Schöler
March 25, 2015Software engineer at makandra GmbH

Here's a pretty useful steps that hasn't made it into Spreewald yet.

Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot

It is best used with the auto-mapper for BEM classes in features/support/selectors.rb

When I hover above [selector] element

When /^I hover above (.*) element$/ do |selector|
  page.find(selector_for(selector)).hover
end

Example:

When I hover above the album's image element

→ triggers a hover event on .album--image

Posted by Dominik Schöler to makandra dev (2015-03-25 16:54)