2
我有一个Rails应用程序重定向到Soundcloud,以便用户可以连接到他的帐户。我正在用黄瓜测试这个过程,但我有几个错误。如何使用Rails/Cucumber测试重定向到Soundcloud
没有其他宝石来处理重定向,我得到一个超时
我尝试使用水豚,机械化。
When /^I successfully connect to Soundcloud$/ do Capybara.app_host = "https://soundcloud.com" steps %Q{ When I follow "sc_connect" And I fill in the following: | username | myusername | | password | mypassword | And I press "Connect" } end
我可以清楚地看到重定向的工作,但我的页面“/注销”,所以水豚不能选择并填写相应的栏目,我得到一个错误。只有黄瓜才能进入登录页面并停止。
我得到这个错误:
水豚:: NotSupportedByDriverError(水豚:: NotSupportedByDriverError)
我想找到一种方法来测试这些重定向正确使用黄瓜。
感谢您的帮助
感谢您的帮助,它做到了。 :) – Skaradams