<commit_before>var assert = require('assert');

Feature('colorpicker');

Scenario('test ColorPicker Editor  without third party library', async (I) => {
  I.amOnPage('colorpicker-no-3rd-party.html');
  I.seeElement('[name="root[colorpicker]');
  I.click('.get-value');
  assert.equal(await I.grabValueFrom('.debug'), JSON.stringify({"colorpicker":"#efefef"}));
});

Scenario('test ColorPicker Editor  using vanilla-picker', async (I) => {
  I.amOnPage('colorpicker-use-vanilla-picker.html');
  I.click('.get-value');
  I.click('.get-value');
  assert.equal(await I.grabValueFrom('.debug'), JSON.stringify({"colorpicker":"#000000"})); // default value
  I.click('[name="root[colorpicker]"]');
  I.seeElement('[name="root[colorpicker]"]');
  I.seeElement('[data-schemapath="root.colorpicker"] .picker_wrapper');
  I.seeElement('[data-schemapath="root.colorpicker"] .picker_wrapper .picker_selector');
  await I.dragAndDrop('[data-schemapath="root.colorpicker"] .picker_wrapper .picker_sl .picker_selector', '[data-schemapath="root.colorpicker"] .picker_wrapper .picker_sl')
  await I.dragAndDrop('[data-schemapath="root.colorpicker"] .picker_wrapper .picker_hue .picker_selector', '[data-schemapath="root.colorpicker"] .picker_wrapper .picker_hue')
  await I.dragAndDrop('[data-schemapath="root.colorpicker"] .picker_wrapper .picker_alpha .picker_selector', '[data-schemapath="root.colorpicker"] .picker_wrapper .picker_alpha')
  I.click('.get-value');
  I.click('.get-value');
  assert.equal(await I.grabValueFrom('.debug'), JSON.stringify({"colorpicker":"rgba(64,191,191,0.502)"}));

});<commit_msg>update colorpicker test<commit_after>var assert = require('assert');

Feature('colorpicker');

Scenario('test ColorPicker Editor  without third party library', async (I) => {
  I.amOnPage('colorpicker-no-3rd-party.html');
  I.seeElement('[name="root[colorpicker]');
  I.click('.get-value');
  assert.equal(await I.grabValueFrom('.debug'), JSON.stringify({"colorpicker":"#efefef"}));
});

Scenario('test ColorPicker Editor  using vanilla-picker', async (I) => {
  I.amOnPage('colorpicker-use-vanilla-picker.html');
  I.seeElement('[name="root[colorpicker]"]');
  I.seeElement('[data-schemapath="root.colorpicker"] .picker_wrapper');
  I.seeElement('[data-schemapath="root.colorpicker"] .picker_wrapper .picker_selector');
  await I.dragAndDrop('[data-schemapath="root.colorpicker"] .picker_wrapper .picker_sl .picker_selector', '[data-schemapath="root.colorpicker"] .picker_wrapper .picker_sl')
  await I.dragAndDrop('[data-schemapath="root.colorpicker"] .picker_wrapper .picker_hue .picker_selector', '[data-schemapath="root.colorpicker"] .picker_wrapper .picker_hue')
  await I.dragAndDrop('[data-schemapath="root.colorpicker"] .picker_wrapper .picker_alpha .picker_selector', '[data-schemapath="root.colorpicker"] .picker_wrapper .picker_alpha')
  I.click('.get-value');
  I.click('.get-value');
  assert.equal(await I.grabValueFrom('.debug'), JSON.stringify({"colorpicker":"rgba(64,191,191,0.502)"}));
});
{'fraction_non_alphanumeric': 0.19454605919521117, 'fraction_numerical': 0.010641835716661123, 'mean_word_length': 7.0, 'pattern_counts': {'":': 5, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '4143401', 'n_tokens_mistral': 1011, 'n_tokens_neox': 1000, 'n_words': 134}