{"size": 2240, "ext": "js", "max_stars_repo_path": "bigbluebutton-html5/tests/nightwatch/loggingInOut.js", "max_stars_repo_name": "thong-hoczita/bigbluebutton", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "bigbluebutton-html5/tests/nightwatch/loggingInOut.js", "max_issues_repo_name": "thong-hoczita/bigbluebutton", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "bigbluebutton-html5/tests/nightwatch/loggingInOut.js", "max_forks_repo_name": "thong-hoczita/bigbluebutton", "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": 36.7213114754, "max_line_length": 80, "alphanum_fraction": 0.6383928571}
module.exports = {
  'Logging into Demo Meeting using Enter key': function (browser) {
    browser
      .url('http://192.168.244.140:4000')
      .waitForElementVisible('body', 1000)
      .assert.visible('input[ng-model=username]')
      .setValue('input[ng-model=username]', ['Maxim', browser.Keys.ENTER])
      .waitForElementVisible('body #main', 10000)
      .verify.urlEquals('http://192.168.244.140:3000/')
      .waitForElementVisible('.navbarTitle span', 1000)
      .verify.containsText('.navbarTitle span', 'Demo Meeting')
      .deleteCookies()
      .closeWindow()
      .end();
  },

  'Logging into Demo Meeting using Send button': function (browser) {
    browser
      .url('http://192.168.244.140:4000')
      .waitForElementVisible('body', 1000)
      .assert.visible('input[ng-model=username]')
      .setValue('input[ng-model=username]', 'Maxim')
      .click('input.success')
      .waitForElementVisible('body #main', 10000)
      .verify.urlEquals('http://192.168.244.140:3000/')
      .waitForElementVisible('.navbarTitle span', 1000)
      .verify.containsText('.navbarTitle span', 'Demo Meeting')
      .deleteCookies()
      .closeWindow()
      .end();
  },

  'Logging into a meeting with non-default name': function (browser) {
    browser
      .url('http://192.168.244.140:4000')
      .waitForElementVisible('body', 1000)
      .assert.visible('input[ng-model=username]')
      .setValue('input[ng-model=username]', 'Maxim')
      .assert.visible('input[ng-model=meetingName]')
      .setValue('input[ng-model=meetingName]', ['Meeting1', browser.Keys.ENTER])
      .waitForElementVisible('.navbarTitle span', 10000)
      .verify.containsText('.navbarTitle span', 'Meeting1')
      .deleteCookies()
      .closeWindow()
      .end();
  },

  'Loading the presentation': function (browser) {
    browser
      .url('http://192.168.244.140:4000')
      .waitForElementVisible('body', 1000)
      .assert.visible('input[ng-model=username]')
      .setValue('input[ng-model=username]', ['Maxim', browser.Keys.ENTER])
      .waitForElementVisible('#whiteboard-paper', 10000)
      .waitForElementVisible('#whiteboard-paper > #svggroup', 30000)
      .deleteCookies()
      .closeWindow()
      .end();
  },
};
