<commit_before>import { visitExample } from '../helper';

describe('Navigation', () => {
  beforeEach(() => {
    visitExample('official-storybook');
  });

  it('should search navigation item', () => {
    cy.get('#storybook-explorer-searchfield')
      .click()
      .type('persisting the action logger');

    cy.get('.sidebar-container a')
      .should('contain', 'Persisting the action logger')
      .and('not.contain', 'a11y');
  });

  it('should display no results after searching a non-existing navigation item', () => {
    cy.get('#storybook-explorer-searchfield')
      .click()
      .type('zzzzzzzzzz');

    cy.get('.sidebar-container').should('contain', 'This filter resulted in 0 results');
  });
});

describe('Routing', () => {
  it('should navigate to story addons-a11y-basebutton--default', () => {
    visitExample('official-storybook');
    cy.wait(10000)
      .get('#exploreraddons-a11y-basebutton--label')
      .click();

    cy.url().should('include', 'path=/story/ui-layout-app--loading-state');
  });

  it('should directly visit a certain story and render correctly', () => {
    visitExample('official-storybook', '?path=/story/addons-a11y-basebutton--label');

    cy.preview().should('contain.text', 'Testing the a11y addon');
  });
});<commit_msg>FIX e2e<commit_after>import { visitExample } from '../helper';

describe('Navigation', () => {
  beforeEach(() => {
    visitExample('official-storybook');
  });

  it('should search navigation item', () => {
    cy.get('#storybook-explorer-searchfield')
      .click()
      .type('persisting the action logger');

    cy.get('.sidebar-container a')
      .should('contain', 'Persisting the action logger')
      .and('not.contain', 'a11y');
  });

  it('should display no results after searching a non-existing navigation item', () => {
    cy.get('#storybook-explorer-searchfield')
      .click()
      .type('zzzzzzzzzz');

    cy.get('.sidebar-container').should('contain', 'This filter resulted in 0 results');
  });
});

describe('Routing', () => {
  it('should navigate to story ui-layout-app--loading-state', () => {
    visitExample('official-storybook');
    cy.get('#explorerui-layout-app--loading-state').click();

    cy.url().should('include', 'path=/story/ui-layout-app--loading-state');
  });

  it('should directly visit a certain story and render correctly', () => {
    visitExample('official-storybook', '?path=/story/addons-a11y-basebutton--label');

    cy.preview().should('contain.text', 'Testing the a11y addon');
  });
});
{'fraction_non_alphanumeric': 0.19771112865035517, 'fraction_numerical': 0.009471191791633781, 'mean_word_length': 3.7031539888682747, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6598153', 'n_tokens_mistral': 804, 'n_tokens_neox': 764, 'n_words': 147}