<commit_before>import { getCountFromHeader } from '../support/helper-functions';

describe('search module', () => {
  beforeEach(() => {
    // go to the homepage
    cy.visit('/');
  });

  it('should show results when searching for "dam"', () => {
    cy.server();
    cy.defineSearchRoutes();
<commit_msg>DP-5464 search_spec e2e fixed<commit_after>import { getCountFromHeader } from '../support/helper-functions';

describe('search module', () => {
  it('should show results when searching for "dam"', () => {
    cy.server();
    cy.defineSearchRoutes();

    cy.visit('/');

{'fraction_non_alphanumeric': 0.18652849740932642, 'fraction_numerical': 0.008635578583765112, 'mean_word_length': 3.7540983606557377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '7235552', 'n_tokens_mistral': 181, 'n_tokens_neox': 173, 'n_words': 40}