Test Csrf In Feature Test Using Capybara

Rails app disable request forgery protection in test environment by default. So csrf token dose not appear in app using <%= csrf_meta_tags %> or form_for...

Things To Be Aware Of When Change Capybara Default_wait_time

About Capybara.default_wait_time According to api document... find will wait for a set amount of time and continuously retry finding the element until...

Feature Test Tips Using Capybara

Can not find element PART 1 Capybara can not find invisible element by default. You need set visible option like this. find(selector, visible: false) true -...

When Let Is Called In Rspec

Outline When let / let! syntax is called in Rspec. ? let Use let to define a memoized helper method and you can execute it when you want to do. But it can...

When Before Syntax Is Called In Rspec

Outline When before syntax is called in Rspec. ? Example describe "before spec example" do before(:all) do # do somthing all(1) end before(:each) do # do...