<commit_before># frozen_string_literal: true

require 'rails_helper'

RSpec.describe 'Unsaved Changes', type: :feature, js: true do
  before :each do
    visit '/users/sign_in'
    fill_in 'Email', with: 'abcdef'
  end

  it 'should navigate away with unsaved changes on accept' do
    accept_confirm do
      click_link 'Forgot your password?'
    end

    expect(page).to have_button 'Forgot my password'
  end

  it 'should not navigate away on reject' do
    dismiss_confirm do
      click_link 'Forgot your password?'
    end

    expect(page).not_to have_button 'Forgot my password'
  end
end<commit_msg>Skipping unsaved feature spec for now<commit_after># frozen_string_literal: true

require 'rails_helper'

RSpec.describe 'Unsaved Changes', type: :feature, js: true do
  before :each do
    visit '/users/sign_in'
    fill_in 'Email', with: 'abcdef'
  end

  skip 'should navigate away with unsaved changes on accept' do
    accept_confirm do
      click_link 'Forgot your password?'
    end

    expect(page).to have_button 'Forgot my password'
  end

  skip 'should not navigate away on reject' do
    dismiss_confirm do
      click_link 'Forgot your password?'
    end

    expect(page).not_to have_button 'Forgot my password'
  end
end
{'fraction_non_alphanumeric': 0.07371794871794872, 'fraction_numerical': 0.0, 'mean_word_length': 3.5583941605839415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '233878', 'n_tokens_mistral': 400, 'n_tokens_neox': 380, 'n_words': 140}