Skip to content

Instantly share code, notes, and snippets.

@rubemz
Created July 17, 2012 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubemz/3130139 to your computer and use it in GitHub Desktop.
Save rubemz/3130139 to your computer and use it in GitHub Desktop.
Given /^I am at the reader view$/ do
visit '/#reader/1'
wait_until { page.evaluate_script('reader.reader.properties.initialized') == true }
#to avoid bootstrap modal animation
page.execute_script("document.addEventListener('DOMNodeInserted', function (ev) {
$('.modal').removeClass('fade');
});")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment