<commit_before>require 'smoke_spec_helper.rb'
require 'uri'

describe 'Petition page' do
  let(:petition) {create :petition}

  before :each do
    uri = URI.join(HOST_URL, "petitions/#{petition.id}").to_s
    $driver.navigate.to(uri)
    puts $driver.page_source
  end

  it 'should allow users to sign' do
    type('bob').into('signature_name')
    type('<EMAIL>').into('signature_email')
    click :id => 'sign_petition'
  
    wait.until { $driver.find_element(:class => "thanks") }
  end
end<commit_msg>fixed element selectors<commit_after>require 'smoke_spec_helper.rb'
require 'uri'

include Rails.application.routes.url_helpers

describe 'Petition page' do
  let(:petition) {create :petition}

  before :each do
    uri = URI.join(HOST_URL, petition_path(petition)).to_s
    $driver.navigate.to(uri)
  end

  it 'should allow users to sign' do
    type('bob').into(:id => 'signature_name')
    type('<EMAIL>').into(:id => 'signature_email')
    click :id => 'sign_petition'
  
    wait.until { $driver.find_element(:class => "thanks") }
  end
end
{'fraction_non_alphanumeric': 0.1461100569259962, 'fraction_numerical': 0.0, 'mean_word_length': 4.275, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5425269', 'n_tokens_mistral': 374, 'n_tokens_neox': 355, 'n_words': 79}