vendredi 1 décembre 2017

Sign up user and then visit account page with system tests?

If I've understood it correctly, creating a user in a form like below doesn't create a record in the database.

I want to create a system test to follow these steps:
1. Sign up in a form
2. Visit account pages
3. Update account information

What technique would allow to accomplish the above scenario?

within 'form#t-signup-form' do
    fill_in 'first_name', with: 'Eve'
    fill_in 'last_name', with: 'Farmer'
    fill_in 'email', with: 'eve@example.com'
    fill_in 'password', with: 'Something'
    find('button').click
end

Aucun commentaire:

Enregistrer un commentaire