Sha256: 418208ad2730241f56267ec9caf71035a6c3f896fb3aacaf40c2acb982407eb8
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 Bytes
Contents
require File.expand_path('../../stories_helper', __FILE__) class FirstLoginStory < Story test "First login" do visit '/logout' visit '/login' assert_location '/login' assert page.has_content?('Login') assert page.has_css?('form') fill_in 'username', :with => 'test@sinefunc.com' fill_in 'password', :with => 'massive' click_button 'Login' # Go back to login page assert_location '/login' assert page.has_content?('Try again!') fill_in 'username', :with => Main.default_user fill_in 'password', :with => Main.default_password click_button 'Login' # First visit! assert_location '/admin/welcome' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aura-0.0.1.pre10 | test/stories/first_login_story.rb |