<commit_before><commit_msg>Add sidebar navigation acceptance tests<commit_after>import { test } from 'qunit';

import moduleForAcceptance from 'ember-api-docs/tests/helpers/module-for-acceptance';

moduleForAcceptance('Acceptance | sidebar navigation');

test('can navigate to namespace from sidebar', function(assert) {
  visit('/ember/1.0.0');
  click('.toc-level-1.namespaces a:contains(Ember.String)');

  andThen(() => {
    assert.equal(currentURL(), '/ember/1.0.0/namespaces/Ember.String', 'navigated to namespace');
  });
});

test('can navigate to module from sidebar', function(assert) {
  visit('/ember/1.0.0');
  click('.toc-level-1.modules a:contains(application)');

  andThen(() => {
    assert.equal(currentURL(), '/ember/1.0.0/modules/application', 'navigated to module');
  });
});

test('can navigate to class from sidebar', function(assert) {
  visit('/ember/1.0.0');
  click('.toc-level-1.classes a:contains(Ember.Component)');

  andThen(() => {
    assert.equal(currentURL(), '/ember/1.0.0/classes/Ember.Component', 'navigated to class');
  });
});
{'fraction_non_alphanumeric': 0.19140989729225025, 'fraction_numerical': 0.0196078431372549, 'mean_word_length': 4.922651933701657, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1065130', 'n_tokens_mistral': 354, 'n_tokens_neox': 340, 'n_words': 63}