drupal-boilerplate
drupal-boilerplate copied to clipboard
Add a random string generator to casper / common.js utilities.
trafficstars
Adds casper.randomString() function which will generate a random string of text.
Maybe we should use https://bitbucket.org/davereid/drush-casperjs/src/c64819c648587f35278bbdf27a854829a89a3dac/common.js?at=master#cl-59 ? I expanded to a randomString() and randomName() functions to match more what Drupal core provides with DrupalTestCase.
That totally works for me. :)
@davereid, what is https://bitbucket.org/davereid/drush-casperjs? It looks like a bunch of code that @juampy72, @eojthebrave and I wrote a long time ago, but structured differently. https://www.drupal.org/project/casperjs