<commit_before>require 'spec_helper'

describe 'Home page', type: :request do
  it 'successfully renders the Tariff home page' do
    VCR.use_cassette('geographical_areas#countries') do
      visit root_path

      expect(page).to have_content 'Use this tool to search'
      expect(page).to have_selector('meta[name="description"][content="Search for import and export commodity codes and for tax, duty and licences that apply to your goods"]', visible: false)
    end
  end
end<commit_msg>Updated homepage spec in-line with new homepage content<commit_after>require 'spec_helper'

describe 'Home page', type: :request do
  it 'successfully renders the Tariff home page' do
    VCR.use_cassette('geographical_areas#countries') do
      visit root_path

      expect(page).to have_content 'Use the Trade Tariff to search for commodity codes.'
      expect(page).to have_selector('meta[name="description"][content="Search for import and export commodity codes and for tax, duty and licences that apply to your goods"]', visible: false)
    end
  end
end
{'fraction_non_alphanumeric': 0.08365019011406843, 'fraction_numerical': 0.0, 'mean_word_length': 4.7228260869565215, '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': '7636426', 'n_tokens_mistral': 302, 'n_tokens_neox': 290, 'n_words': 112}