{"size": 998, "ext": "js", "max_stars_repo_path": "e2e/scenarios/users.js", "max_stars_repo_name": "tomkuran/resMan", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "e2e/scenarios/users.js", "max_issues_repo_name": "tomkuran/resMan", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "e2e/scenarios/users.js", "max_forks_repo_name": "tomkuran/resMan", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.5897435897, "max_line_length": 79, "alphanum_fraction": 0.6342685371}
'use strict';

var Menu    = require('../components/Menu.js');
var Share = require('../components/Share.js');
var BottomSheetInstance = require('../components/BottomSheetInstance.js');

describe('my app', function() {

  var menu   = new Menu();
  var share = new Share();
  var sheet = new BottomSheetInstance();

  beforeEach(function() {
    menu.loadAbout();
  });

  it('should load all 3 menu items', function() {
    expect(menu.countNavLinks()).toBeGreaterThan(2);
  });

  it('should have the header ripple attached', function() {
    expect(menu.rippleAttached()).toBeTruthy();
  });

  describe('selecting a user', function() {

    beforeEach(function() {
      return share.clickContact();
    });

    it('should set focus on first button in the bottomsheet view', function() {
      expect( sheet.buttons().count() ).toBe(4);
      expect( sheet.buttons().first().getText() ).toEqual( 'PHONE' );
      expect( sheet.focusedButton().getText() ).toEqual( 'PHONE' );
    });

  });
});
