<commit_before>'use strict';

let context = { pageName: 'Target Folder' };
let path = require('path');
let breadcrumbBase = require('./breadcrumbs-base');

const defaultFolder = process.platform === 'win32' ? path.join('C:', 'Program Files', 'Development Suite') : '/Applications/DevelopmentSuite';

describe('Location page', function() {
  let locationField, backButton, nextButton, cancelButton, browseButton;

  beforeAll(function() {
    browser.setLocation('location')
    .then(function() {
      locationField = element(By.id('location-browse-input-folder'));
      backButton = element(By.id('location-back-btn'));
      nextButton = element(By.id('location-install-btn'));
      cancelButton = element(By.id('location-cancel-btn'));
      browseButton = element(By.id('location-browse-btn'));
    });
  });

  it('should set the default target folder', function() {
    expect(locationField.getAttribute('value')).toEqual(defaultFolder);
  });

  it('should have the Browse button enabled', function() {
    expect(browseButton.isEnabled()).toBe(true);
  });

  it('should let the user proceed with default folder', function() {
    expect(nextButton.isEnabled()).toBe(true);<commit_msg>Fix UI test error on Windows<commit_after>'use strict';

let context = { pageName: 'Target Folder' };
let path = require('path');
let breadcrumbBase = require('./breadcrumbs-base');

const defaultFolder = process.platform === 'win32' ? path.join('C:', 'Program Files', 'DevelopmentSuite') : '/Applications/DevelopmentSuite';

describe('Location page', function() {
  let locationField, backButton, nextButton, cancelButton, browseButton;

  beforeAll(function() {
    browser.setLocation('location')
    .then(function() {
      locationField = element(By.id('location-browse-input-folder'));
      backButton = element(By.id('location-back-btn'));
      nextButton = element(By.id('location-install-btn'));
      cancelButton = element(By.id('location-cancel-btn'));
      browseButton = element(By.id('location-browse-btn'));
    });
  });

  it('should set the default target folder', function() {
    expect(locationField.getAttribute('value')).toEqual(defaultFolder);
  });

  it('should have the Browse button enabled', function() {
    expect(browseButton.isEnabled()).toBe(true);
  });

  it('should let the user proceed with default folder', function() {
    expect(nextButton.isEnabled()).toBe(true);
{'fraction_non_alphanumeric': 0.16458852867830423, 'fraction_numerical': 0.0016625103906899418, 'mean_word_length': 4.885085574572127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '206448', 'n_tokens_mistral': 702, 'n_tokens_neox': 675, 'n_words': 145}