Fixed flickering scenarios in rspec and cucumber.