Error when using rails capybara

For the purpose of this time, as in the following reference article, It was to be able to use the sign_in method when running the rspec test. https://qiita.com/jnchito/items/a8360e5e7a829d1e19b2

Therefore, when I tried to set capybara with rails, I got the following error I'll put a reference link for each error. Also, for the rough settings, I referred to the following article. https://qiita.com/morrr/items/0e24251c049180218db4

undefined method `visit'

https://qiita.com/terufumi1122/items/aefd6c965e9e946efc3b Since visit is a method that can be used with capybara, it seems that the above error will occur unless it is set.

Failure/Error: fill_in 'email', with: user.email 
Capybara::ElementNotFound:
Unable to find field "email" that is not disabled

https://qiita.com/pooooon/items/4fbc429d07e4b65ed928 In my case, I made the following changes and the error disappeared. fill_in 'user[email]', with: user.email fill_in 'user[password]', with: 'password' As mentioned in the article, there are some patterns that are not'session [email]', so you should check them properly with a browser.

Recommended Posts

Error when using rails capybara
Detailed tips when using Rails
[Rails] Japanese localization of error message when using Form object
[Rails] How to solve the error "undefined method` visit'" when using Capybara with Rspec
[Rails] Error resolution when generating tokens with PAYJP
Error handling when Gradle dependency is using SLF4J
Error in bundle install when running rails new
Rails <% = expression%> Why no error occurs when empty
[Note] Rails error list
Catch Rails Routing Error
Mac Rails Install Error
Error when bundle install
Error encountered with notes when deploying docker on rails
[Rails] When using ajax, be aware of "CSRF measures".
I got an error when using nextInt, nextLine and substring.
How to set environment variables when using Payjp with Rails
rails error Library not loaded
SNS authentication using Rails google
[Rails] Save images using carrierwave
Be careful of initialization timing when using MessageEncryptor with Rails 5.2 / 6.0
Japaneseize using i18n with Rails
[Rails] Test code using Rspec
Error when playing with java
PG :: DatatypeMismatch error when doing heroku run rails db: migrate
[Rails] Integration test using Capybara (from introduction to simple test execution)
[Rails] Encoded by brute force using gsub when getting url! !! !! !!
[Rails] Try using Faraday middleware
SpringBoot + Mybatis error when booting
Error when introducing SNS authentication
[rails] error during devise installation
[Rails 6] Star-shaped review using Raty.js
Scraping practice using Java ②
Scraping practice using Java ①
Error when using rails capybara
SpringBoot + Mybatis error when booting
Detailed tips when using Rails
Remedy for "A server is already running." Error when running rails s
I get a Ruby version error when I try to start Rails.
Solution notes when an error occurs when downloading docker gpg using curl
Avoid character code error in java when using VScode extension RUN-CODE
How to solve the unknown error when using slf4j in Java
The story that the build error did not stop when using Eclipse 2020
Unknown error in line 1 of pom.xml when using Spring Boot in Eclipse
[Rails 5] How to display the password change screen when using devise
[Rails] What was the error message?
[Rails] Japanese localization of error messages
[Beginner] When rails s doesn't work
[Hidden_field] Let's send information using rails hidden_field !!!!
Get PV (views) using Impressionist ~ Rails
[Rails] Tag management function (using acts-as-taggable-on)
[Rails] Unexpected validation error in devise
[Rails 6] API development using GraphQL (Query)
Workspace location when using Jenkins Pipeline
Be careful when using multiple articles
[Rails5] Rspec -Unit test when nesting-
Unexpected exception when using Java DateTimeFormatter
[Rails 6] destroy using the resources method
[Rails] Status update using Rake task
About error when implementing spring validation
[Rails] syntax error, unexpected tSTRING_END, expecting'''
[Rails] AWS deployment error encounter summary
[Rails] I was addicted to the nginx settings when using Action Cable.
[Rails] What I learned from a little stumbling block when using ancestry
[Visual Studio Code] I get a syntax error when debugging when using rbenv