UNPKG

protractor

Version:

Webdriver E2E test wrapper for Angular.

24 lines (22 loc) 641 B
var q = require('q'); /** * A framework which does not actually run any tests. It allows users to drop * into a repl loop to experiment with protractor commands. * * @param {Runner} runner The current Protractor Runner. * @return {q.Promise} Promise resolved with the test results */ exports.run = function(runner) { /* globals browser */ return q.promise(function(resolve) { if (runner.getConfig().baseUrl) { browser.get(runner.getConfig().baseUrl); } browser.enterRepl(); browser.executeScript_('', 'empty debugger hook').then(function() { resolve({ failedCount: 0 }); }); }); };