Complete the code to visit the home page in a system test.
visit [1]The visit method navigates to the given path. The root path is "/".
Complete the code to check if the page has the text 'Welcome'.
expect(page).to have_content([1])The have_content matcher checks if the page shows the given text. We want to check for 'Welcome'.
Fix the error in the code to fill in a form field labeled 'Email'.
fill_in [1], with: 'user@example.com'
The fill_in method expects the exact label text as a string. The label is 'Email' with capital E.
Fill both blanks to click a button labeled 'Submit' and then check the page has 'Success'.
click_button([1]) expect(page).to have_content([2])
Use click_button('Submit') to press the button. Then check for 'Success' text on the page.
Fill all three blanks to fill in 'Name', select 'Male' from 'Gender', and submit the form.
fill_in [1], with: 'John' select [2], from: 'Gender' click_button [3]
Fill the 'Name' field, select 'Male' from the 'Gender' dropdown, then click the 'Submit' button.