<commit_before>'use strict';

/* https://github.com/angular/protractor/blob/master/docs/toc.md */

describe('my app', function() {

  browser.get('index.html');

  it('should automatically redirect to /play when location hash/fragment is empty', function() {
    expect(browser.getLocationAbsUrl()).toMatch("/play");
  });


  describe('play', function() {

    beforeEach(function() {
      browser.get('index.html#/play');
    });


    it('should render view1 when user navigates to /view1', function() {
      expect(element.all(by.css('[ng-view] h3')).first().getText()).
        toMatch(/playing/i);
    });

  });


  describe('preferences', function() {

    beforeEach(function() {
      browser.get('index.html#/preferences');
    });


    it('should have the difficulty sections', function() {
      expect(element.all(by.css('[ng-view] h3')).first().getText()).
        toMatch(/difficulty/i);
    });

    it('should have the characters sections', function() {
      expect(element.all(by.css('[ng-view] h3')).last().getText()).
        toMatch(/characters/i);
    });

  });
});<commit_msg>Remove spaces from basic e2e tests.<commit_after>'use strict';

describe('my app', function() {
  browser.get('index.html');

  it('should automatically redirect to /play when location hash/fragment is empty', function() {
    expect(browser.getLocationAbsUrl()).toMatch("/play");
  });


  describe('play', function() {
    beforeEach(function() {
      browser.get('index.html#/play');
    });


    it('should render view1 when user navigates to /view1', function() {
      expect(element.all(by.css('[ng-view] h3')).first().getText()).
        toMatch(/playing/i);
    });
  });


  describe('preferences', function() {
    beforeEach(function() {
      browser.get('index.html#/preferences');
    });

    it('should have the difficulty sections', function() {
      expect(element.all(by.css('[ng-view] h3')).first().getText()).
        toMatch(/difficulty/i);
    });

    it('should have the characters sections', function() {
      expect(element.all(by.css('[ng-view] h3')).last().getText()).
        toMatch(/characters/i);
    });
  });
});
{'fraction_non_alphanumeric': 0.19749652294853964, 'fraction_numerical': 0.005099675475197033, 'mean_word_length': 3.3595959595959597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '7423527', 'n_tokens_mistral': 670, 'n_tokens_neox': 643, 'n_words': 118}