Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions spec/features/users/sign_in_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,22 +220,10 @@
end

scenario 'user can see and use password visibility toggle', js: true do
fake_analytics = FakeAnalytics.new
allow_any_instance_of(ApplicationController).to receive(:analytics).and_return(fake_analytics)

visit new_user_session_path

check t('components.password_toggle.toggle_label')

# Clicking the checkbox triggers a frontend event logging request. Wait for network requests to
# settle before continuing to avoid a race condition.
Capybara.current_session.server.wait_for_pending_requests

expect(page).to have_css('input.password[type="text"]')
expect(fake_analytics).to have_logged_event(
'Show Password Button Clicked',
path: new_user_session_path,
)
end

scenario 'user session expires in amount of time specified by Devise config' do
Expand Down