about summary refs log tree commit diff
path: root/spec/features/log_in_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/log_in_spec.rb')
-rw-r--r--spec/features/log_in_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/log_in_spec.rb b/spec/features/log_in_spec.rb
new file mode 100644
index 000000000..4a634f6b8
--- /dev/null
+++ b/spec/features/log_in_spec.rb
@@ -0,0 +1,16 @@
+require "rails_helper"
+
+feature "Log in" do
+  scenario "A valid email and password user is able to log in" do
+    email = "test@example.com"
+    password = "password"
+    Fabricate(:user, email: email, password: password)
+
+    visit new_user_session_path
+    fill_in "user_email", with: email
+    fill_in "user_password", with: password
+    click_on "Log in"
+
+    expect(page).to have_css "div.app-holder[data-react-class=Mastodon]"
+  end
+end