Ajout exo protractor

This commit is contained in:
2015-04-10 01:01:21 +02:00
parent 22eb8175fe
commit 1d015b15d5
13 changed files with 156 additions and 19 deletions

View File

@ -1,12 +0,0 @@
var myApp = angular.module('myApp', []);
myApp.controller('ExoCtrl', ['$scope', function($scope) {
$scope.val1 = 1;
$scope.val2 = 2;
$scope.add = function() {
$scope.result = $scope.val1 + $scope.val2;
};
}]);

View File

@ -0,0 +1,4 @@
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['test/todomvc-spec.js']
};

View File

@ -0,0 +1,14 @@
{
"name": "protractor-exo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"protractor": "^2.0.0"
}
}

View File

@ -0,0 +1,13 @@
describe('TodoMVC spec', function() {
it('should navigate to TodoMVC/Angular', function() {
// Documentation API: http://angular.github.io/protractor/#/api
browser.get('http://todomvc.com/examples/angularjs/');
expect(browser.getCurrentUrl()).toBe('http://todomvc.com/examples/angularjs/#/');
});
});