Esempio n. 1
0
  h.setUpCasper(casper, xhr).start(url, function () {
    xhr.fake(apiAdmins.list());

    this.waitForSelector('#content', function () {
      test.assertUrlMatch('admins');
    });
  }).then(function () {
Esempio n. 2
0
  }).then(function () {
    xhr.fake(apiAdmins.update());

    this.fillSelectors('form', {
      '#username': 'mockUsername',
      '#password': 'mockPassword',
      '#email': 'mockEmail'
    }, true);
  }).then(function () {