ruby on rails - How to have Cucumber render CSS before checking content? -


so, html of page has hi there , i'm using css convert hi there.

i run cucumber check if page has hi there on (as should since that's end result.

yet when run cucumber, error. hi there not on page... edit tests instead hi there , passes.

key question: how tell cucumber need render css before giving me ok answer?

edit: so, cucumber load css when old firefox pop , run me. therefore, feel question becomes: there way tell cucumber render css without browser being loaded?

def hi_there(options = {})   click_button('hi there')   expect(page).to have_content("hi there")    # other code more testing end 

i'm using css convert hi there.

this means using text-transform:uppercase; property internally call javascript convert given text on page. need install(if haven't already) javascript_driver , use scenario.

refer using capybara cucumber here.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -