I have the following test that works in Rack::Test but not using Selenium. I.e. if I add , js: true
to the describe block, I get an error message in Firefox saying that it couldn't find the License with id=
(the id of @l
)
describe "should hide allocation rule # for pdf & clickthrough licenses" do
it "reads current state and shows/hides fields appropriately" do
@l = FactoryGirl.create(:license:,
way: License::CLICK_WAY)
visit edit_admin_license_path(@l)
end
end
Why? I must be missing something. I can verify with Sequel Pro that the record is not getting saved when using js: true
.
I need this spec to run in Selenium because I have javascript to test.