- Integration testing of JS using Capybara
- Talk about Drive
- Let the test pass
- Webpack in Development Mode
JS design is an important factor for users to have a good experience on the web. However, many Web pages do not test JS.
This is partly because JS is difficult to test. Interaction and logic are dependent on the user's interaction with the Web page, which is difficult.
The JS framework also does not support simple unit testing. The tool also changes very quickly. b The tool used in this chapter looks a bit old, if you read it without being completely antiquated discarded.
This chapter discusses using the Integrated test tool Capybara to test JS from the client code.
The next chapter discusses unit Test JS, with JS Tools, and Webpack support (Rails5.1 new)
Enter tasks when creating project cannot jump to projects page
This problem should be not satisfied with the validation, so it cannot be stored in the database. Use the object. Reload. Property hints that there are no objects.
Use the valid and Erroes.message methods. Tip Project.tasks failed validation.
Then using the Full_message method, it is suggested that 2 parameters are provided less.
Is there a problem with the Task.new code? There was no problem before, whether it was due to the addition of the Task property, so you need to update the previous automated test content.
Integration-testing JavaScript with Capybara
Rails 5 Test Prescriptions 9th Chapter Testing-javascript:integration Testing