<commit_before>describe('Web - Vizabi e2e test :: All', function() {

  jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000000;
  browser.manage().window().setSize(1100, 750);

  var baseUrl = 'http://localhost:9000/preview/';
  var baseUrlHash = "#_width:750&height:650&fullscreen:true&resp-sect:true&info-sect:true&butt-sect:true";

  var play = element(by.css("#vzbp-placeholder > div > div.vzb-tool-stage > div.vzb-tool-timeslider > div > div.vzb-ts-btns > button.vzb-ts-btn-play.vzb-ts-btn"));
  var pause = element(by.css("#vzbp-placeholder > div > div.vzb-tool-stage > div.vzb-tool-timeslider > div > div.vzb-ts-btns > button.vzb-ts-btn-pause.vzb-ts-btn"));
  var slider = element(by.css("#vzbp-placeholder > div > div.vzb-tool-stage > div.vzb-tool-timeslider > div > div.vzb-ts-slider-wrapper > svg.vzb-ts-slider > g > g.vzb-ts-slider-slide > circle"));
  var USABubbleMap = element(by.css("#vzbp-placeholder > div > div.vzb-tool-stage > div.vzb-tool-viz > div > svg.vzb-bubblemap-svg > g > g.vzb-bmc-bubbles > circle:nth-child(3)"));
  var EC = protractor.ExpectedConditions;

  /***************************** All CHARTS *************************************/

  // On large screen there is a side panel with color controls and list of countries
  // Bubble Chart

  it('LargeScreenBubbleChart', function() {

    browser.get(baseUrl + "bubblechart.html" + baseUrlHash);
    browser.refresh();
    browser.wait(EC.visibilityOf(play), 120000 , "Chart is not Loaded");

    //Clicking Expand
    var expand =element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-buttonlist > button:nth-child(7) > span.vzb-buttonlist-btn-icon.fa"));
    browser.wait(EC.visibilityOf(expand), 10000);
    expand.click();
    browser.sleep(2000);

    // Getting attributes of color dropdown
    var colorOption = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(1) > div > div.vzb-dialog-title > span.vzb-caxis-selector"));
    browser.wait(EC.visibilityOf(colorOption), 5000);
    colorOption.getText().then(function (colorOptionAsParameter) {
      var colorOptionText = colorOptionAsParameter;
      // Comparing the color option name
      var findMe = "World Region";
      expect(findMe).toBe(colorOptionText);
    });


    // Getting Afghnistan name under expanded find
    var afg = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(2) > div > div.vzb-dialog-content.vzb-dialog-content-fixed.vzb-dialog-scrollable > div > div:nth-child(1)"));
    browser.wait(EC.visibilityOf(afg), 5000);
    afg.getText().then(function (afgAsParameter) {
      var afgText = afgAsParameter;
      // Comparing the country name
      var findMeAfg = "Afghanistan";
      expect(findMeAfg).toBe(afgText);
    });


    // Getting attributes of size dropdown
    var sizeOption = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(3) > div > div.vzb-dialog-title > span.vzb-saxis-selector"));
    browser.wait(EC.visibilityOf(sizeOption), 5000);
    sizeOption.getText().then(function (sizeOptionAsParameter) {
      var sizeOptionText = sizeOptionAsParameter;
      // Comparing the size option name
      var findMeSizeOption = "Population";
      expect(findMeSizeOption).toBe(sizeOptionText);
    });
  });

  // On large screen there is a side panel with color controls and list of countries
  // Mountain Chart

  it('LargeScreenMountainChart', function(){

    browser.get(baseUrl + "mountainchart.html" + baseUrlHash);
    browser.refresh();
    browser.wait(EC.visibilityOf(play), 120000 , "Chart is not Loaded");

    //Clicking Expand
    var expand =element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-buttonlist > button:nth-child(6) > span.vzb-buttonlist-btn-icon.fa"));
    browser.wait(EC.visibilityOf(expand), 10000);
    expand.click();
    browser.sleep(2000);


    // Getting attributes of color dropdown
    var colorOption = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(1) > div > div.vzb-dialog-title > span.vzb-caxis-selector"));
    browser.wait(EC.visibilityOf(colorOption), 5000);
    colorOption.getText().then(function (colorOptionAsParameter) {
      var colorOptionText = colorOptionAsParameter;
      // Comparing the color option name
      var findMe = "World Region";
      expect(findMe).toBe(colorOptionText);
    });


    // Getting Afghnistan name under expanded find
    var afg = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(2) > div > div.vzb-dialog-content.vzb-dialog-content-fixed.vzb-dialog-scrollable > div > div:nth-child(1)"));
    browser.wait(EC.visibilityOf(afg), 5000);
    afg.getText().then(function (afgAsParameter) {
      var afgText = afgAsParameter;
      // Comparing the country name
      var findMeAfg = "Afghanistan";
      expect(findMeAfg).toBe(afgText);
    });


    // Getting attributes of stack options
    var stackOption = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(3) > div > div.vzb-dialog-content.vzb-dialog-scrollable > form.vzb-howtostack.vzb-dialog-paragraph > label:nth-child(3) > span"));
    browser.wait(EC.visibilityOf(stackOption), 5000);
    stackOption.getText().then(function (stackOptionAsParameter) {
      var stackOptionText = stackOptionAsParameter;
      // Comparing the stack option name
      var findMestackOption = "World";
      expect(findMestackOption).toBe(stackOptionText);
    });

  });

  // On large screen there is a side panel with color controls and list of countries
  // Bubble Map Chart

  it('LargeScreenBubbleMapChart', function(){
    browser.get(baseUrl + "bubblemap.html" + baseUrlHash);
    browser.refresh();
    browser.wait(EC.visibilityOf(play), 120000 , "Chart is not Loaded");

    //Clicking Expand
    var expand =element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-buttonlist > button:nth-child(5) > span.vzb-buttonlist-btn-icon.fa"));
    browser.wait(EC.visibilityOf(expand), 10000);
    expand.click();
    browser.sleep(2000);

    // Getting attributes of color dropdown
    var colorOption = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(1) > div > div.vzb-dialog-title > span.vzb-caxis-selector"));
    browser.wait(EC.visibilityOf(colorOption), 5000);
    colorOption.getText().then(function (colorOptionAsParameter) {
      var colorOptionText = colorOptionAsParameter;
      // Comparing the color option name
      var findMe = "World Region";
      expect(findMe).toBe(colorOptionText);
    });


    // Getting Afghnistan name under expanded find
    var afg = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(2) > div > div.vzb-dialog-content.vzb-dialog-content-fixed.vzb-dialog-scrollable > div > div:nth-child(1)"));
    browser.wait(EC.visibilityOf(afg), 5000);
    afg.getText().then(function (afgAsParameter) {
      var afgText = afgAsParameter;
      // Comparing the country name<commit_msg>Revert "Double some timeouts to pass the tests on travis"<commit_after>describe('Web - Vizabi e2e test :: All', function() {

  jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000000;
  browser.manage().window().setSize(1100, 750);

  var baseUrl = 'http://localhost:9000/preview/';
  var baseUrlHash = "#_width:750&height:650&fullscreen:true&resp-sect:true&info-sect:true&butt-sect:true";

  var play = element(by.css("#vzbp-placeholder > div > div.vzb-tool-stage > div.vzb-tool-timeslider > div > div.vzb-ts-btns > button.vzb-ts-btn-play.vzb-ts-btn"));
  var pause = element(by.css("#vzbp-placeholder > div > div.vzb-tool-stage > div.vzb-tool-timeslider > div > div.vzb-ts-btns > button.vzb-ts-btn-pause.vzb-ts-btn"));
  var slider = element(by.css("#vzbp-placeholder > div > div.vzb-tool-stage > div.vzb-tool-timeslider > div > div.vzb-ts-slider-wrapper > svg.vzb-ts-slider > g > g.vzb-ts-slider-slide > circle"));
  var USABubbleMap = element(by.css("#vzbp-placeholder > div > div.vzb-tool-stage > div.vzb-tool-viz > div > svg.vzb-bubblemap-svg > g > g.vzb-bmc-bubbles > circle:nth-child(3)"));
  var EC = protractor.ExpectedConditions;

  /***************************** All CHARTS *************************************/

  // On large screen there is a side panel with color controls and list of countries
  // Bubble Chart

  it('LargeScreenBubbleChart', function() {

    browser.get(baseUrl + "bubblechart.html" + baseUrlHash);
    browser.refresh();
    browser.wait(EC.visibilityOf(play), 60000 , "Chart is not Loaded");

    //Clicking Expand
    var expand =element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-buttonlist > button:nth-child(7) > span.vzb-buttonlist-btn-icon.fa"));
    browser.wait(EC.visibilityOf(expand), 5000);
    expand.click();
    browser.sleep(2000);

    // Getting attributes of color dropdown
    var colorOption = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(1) > div > div.vzb-dialog-title > span.vzb-caxis-selector"));
    browser.wait(EC.visibilityOf(colorOption), 5000);
    colorOption.getText().then(function (colorOptionAsParameter) {
      var colorOptionText = colorOptionAsParameter;
      // Comparing the color option name
      var findMe = "World Region";
      expect(findMe).toBe(colorOptionText);
    });


    // Getting Afghnistan name under expanded find
    var afg = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(2) > div > div.vzb-dialog-content.vzb-dialog-content-fixed.vzb-dialog-scrollable > div > div:nth-child(1)"));
    browser.wait(EC.visibilityOf(afg), 5000);
    afg.getText().then(function (afgAsParameter) {
      var afgText = afgAsParameter;
      // Comparing the country name
      var findMeAfg = "Afghanistan";
      expect(findMeAfg).toBe(afgText);
    });


    // Getting attributes of size dropdown
    var sizeOption = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(3) > div > div.vzb-dialog-title > span.vzb-saxis-selector"));
    browser.wait(EC.visibilityOf(sizeOption), 5000);
    sizeOption.getText().then(function (sizeOptionAsParameter) {
      var sizeOptionText = sizeOptionAsParameter;
      // Comparing the size option name
      var findMeSizeOption = "Population";
      expect(findMeSizeOption).toBe(sizeOptionText);
    });
  });

  // On large screen there is a side panel with color controls and list of countries
  // Mountain Chart

  it('LargeScreenMountainChart', function(){

    browser.get(baseUrl + "mountainchart.html" + baseUrlHash);
    browser.refresh();
    browser.wait(EC.visibilityOf(play), 60000 , "Chart is not Loaded");

    //Clicking Expand
    var expand =element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-buttonlist > button:nth-child(6) > span.vzb-buttonlist-btn-icon.fa"));
    browser.wait(EC.visibilityOf(expand), 5000);
    expand.click();
    browser.sleep(2000);


    // Getting attributes of color dropdown
    var colorOption = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(1) > div > div.vzb-dialog-title > span.vzb-caxis-selector"));
    browser.wait(EC.visibilityOf(colorOption), 5000);
    colorOption.getText().then(function (colorOptionAsParameter) {
      var colorOptionText = colorOptionAsParameter;
      // Comparing the color option name
      var findMe = "World Region";
      expect(findMe).toBe(colorOptionText);
    });


    // Getting Afghnistan name under expanded find
    var afg = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(2) > div > div.vzb-dialog-content.vzb-dialog-content-fixed.vzb-dialog-scrollable > div > div:nth-child(1)"));
    browser.wait(EC.visibilityOf(afg), 5000);
    afg.getText().then(function (afgAsParameter) {
      var afgText = afgAsParameter;
      // Comparing the country name
      var findMeAfg = "Afghanistan";
      expect(findMeAfg).toBe(afgText);
    });


    // Getting attributes of stack options
    var stackOption = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(3) > div > div.vzb-dialog-content.vzb-dialog-scrollable > form.vzb-howtostack.vzb-dialog-paragraph > label:nth-child(3) > span"));
    browser.wait(EC.visibilityOf(stackOption), 5000);
    stackOption.getText().then(function (stackOptionAsParameter) {
      var stackOptionText = stackOptionAsParameter;
      // Comparing the stack option name
      var findMestackOption = "World";
      expect(findMestackOption).toBe(stackOptionText);
    });

  });

  // On large screen there is a side panel with color controls and list of countries
  // Bubble Map Chart

  it('LargeScreenBubbleMapChart', function(){
    browser.get(baseUrl + "bubblemap.html" + baseUrlHash);
    browser.refresh();
    browser.wait(EC.visibilityOf(play), 60000 , "Chart is not Loaded");

    //Clicking Expand
    var expand =element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-buttonlist > button:nth-child(5) > span.vzb-buttonlist-btn-icon.fa"));
    browser.wait(EC.visibilityOf(expand), 5000);
    expand.click();
    browser.sleep(2000);

    // Getting attributes of color dropdown
    var colorOption = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(1) > div > div.vzb-dialog-title > span.vzb-caxis-selector"));
    browser.wait(EC.visibilityOf(colorOption), 5000);
    colorOption.getText().then(function (colorOptionAsParameter) {
      var colorOptionText = colorOptionAsParameter;
      // Comparing the color option name
      var findMe = "World Region";
      expect(findMe).toBe(colorOptionText);
    });


    // Getting Afghnistan name under expanded find
    var afg = browser.element(by.css("#vzbp-placeholder > div > div.vzb-tool-sidebar > div.vzb-tool-dialogs > div:nth-child(2) > div > div.vzb-dialog-content.vzb-dialog-content-fixed.vzb-dialog-scrollable > div > div:nth-child(1)"));
    browser.wait(EC.visibilityOf(afg), 5000);
    afg.getText().then(function (afgAsParameter) {
      var afgText = afgAsParameter;
      // Comparing the country name
{'fraction_non_alphanumeric': 0.15170998632010943, 'fraction_numerical': 0.015868673050615595, 'mean_word_length': 3.765645371577575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 213, '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': '7293251', 'n_tokens_mistral': 5016, 'n_tokens_neox': 4721, 'n_words': 896}