Sha256: 9bd98928147dd4399b6099941a90e9301076dc98fc2f969d1485e37b98748767

Contents?: true

Size: 712 Bytes

Versions: 3

Compression:

Stored size: 712 Bytes

Contents

# frozen_string_literal: true

require 'application_system_test_case'

class SignUpTest < ApplicationSystemTestCase
  test 'successful sign up' do
    visit root_path

    click_on 'Sign in'
    click_on 'Sign up'

    assert_title 'Sign Up'

    fill_in 'Email', with: 'volmer@example.com'
    fill_in 'Password', with: 'abc123word'

    click_on 'Sign up'

    assert_title 'Articles'
    within '.navbar' do
      assert_link 'volmer@example.com'
    end
  end

  test 'all fields are required' do
    visit root_path

    click_on 'Sign in'
    click_on 'Sign up'

    click_on 'Sign up'

    assert_title 'Sign Up'

    assert_text "Email can't be blank"
    assert_text "Password can't be blank"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
upgrow-0.0.5 test/system/sign_up_test.rb
upgrow-0.0.4 test/system/sign_up_test.rb
upgrow-0.0.3 test/system/sign_up_test.rb