-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from mllrsohn/spawn_to_fork
Spawn to fork
- Loading branch information
Showing
14 changed files
with
449 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* text=auto | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,38 @@ | ||
{ | ||
"node": true, | ||
"esnext": true, | ||
"bitwise": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"immed": true, | ||
"indent": 4, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"quotmark": "single", | ||
"regexp": true, | ||
"undef": true, | ||
"unused": true, | ||
"strict": true, | ||
"trailing": true, | ||
"smarttabs": true, | ||
"white": false | ||
"node": true, | ||
"esnext": true, | ||
"bitwise": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"immed": true, | ||
"indent": 4, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"quotmark": "single", | ||
"regexp": true, | ||
"undef": true, | ||
"unused": true, | ||
"trailing": true, | ||
"smarttabs": true, | ||
"white": false, | ||
"globals": { | ||
"after": false, | ||
"afterEach": false, | ||
"angular": false, | ||
"before": false, | ||
"beforeEach": false, | ||
"browser": false, | ||
"describe": false, | ||
"expect": false, | ||
"inject": false, | ||
"strict": false, | ||
"it": false, | ||
"jasmine": false, | ||
"spyOn": false, | ||
"$": false, | ||
"element": true, | ||
"by": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
describe('angularjs homepage', function() { | ||
it('should greet the named user', function() { | ||
browser.get('http://www.angularjs.org'); | ||
it('should greet the named user', function() { | ||
browser.get('http://www.angularjs.org'); | ||
|
||
element(by.model('yourName')).sendKeys('Julie'); | ||
element(by.model('yourName')).sendKeys('Julie'); | ||
|
||
var greeting = element(by.binding('yourName')); | ||
var greeting = element(by.binding('yourName')); | ||
|
||
expect(greeting.getText()).toEqual('Hello Julie!'); | ||
}); | ||
expect(greeting.getText()).toEqual('Hello Julie!'); | ||
}); | ||
|
||
describe('todo list', function() { | ||
var todoList; | ||
describe('todo list', function() { | ||
var todoList; | ||
|
||
beforeEach(function() { | ||
browser.get('http://www.angularjs.org'); | ||
beforeEach(function() { | ||
browser.get('http://www.angularjs.org'); | ||
|
||
todoList = element.all(by.repeater('todo in todoList.todos')); | ||
}); | ||
todoList = element.all(by.repeater('todo in todoList.todos')); | ||
}); | ||
|
||
it('should list todos', function() { | ||
expect(todoList.count()).toEqual(2); | ||
expect(todoList.get(1).getText()).toEqual('build an AngularJS app'); | ||
}); | ||
it('should list todos', function() { | ||
expect(todoList.count()).toEqual(2); | ||
expect(todoList.get(1).getText()).toEqual('build an AngularJS app'); | ||
}); | ||
|
||
it('should add a todo', function() { | ||
var addTodo = element(by.model('todoList.todoText')); | ||
var addButton = element(by.css('[value="add"]')); | ||
it('should add a todo', function() { | ||
var addTodo = element(by.model('todoList.todoText')); | ||
var addButton = element(by.css('[value="add"]')); | ||
|
||
addTodo.sendKeys('write a protractor test'); | ||
addButton.click(); | ||
addTodo.sendKeys('write a protractor test'); | ||
addButton.click(); | ||
|
||
expect(todoList.count()).toEqual(3); | ||
expect(todoList.get(2).getText()).toEqual('write a protractor test'); | ||
}); | ||
}); | ||
expect(todoList.count()).toEqual(3); | ||
expect(todoList.get(2).getText()).toEqual('write a protractor test'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
}, | ||
"devDependencies": { | ||
"gulp": "latest", | ||
"jasmine": "^2.5.3", | ||
"protractor": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
// An example configuration file. | ||
// https://raw.github.com/angular/protractor/master/example/conf.js | ||
exports.config = { | ||
// The address of a running selenium server. | ||
// Make sure you check the version in the folder | ||
// seleniumServerJar: './selenium-server-standalone-3.2.0.jar', | ||
|
||
// webdriver-start can start on default port 4444 | ||
//seleniumAddress: 'http://localhost:4444/wd/hub', | ||
|
||
// Capabilities to be passed to the webdriver instance. | ||
capabilities: { | ||
'browserName': 'chrome' | ||
}, | ||
|
||
allScriptsTimeout: 40000, | ||
directConnect: true, | ||
|
||
// Options to be passed to Jasmine-node. | ||
jasmineNodeOpts: { | ||
showColors: true, | ||
defaultTimeoutInterval: 30000 | ||
} | ||
}; | ||
// The address of a running selenium server. | ||
// Make sure you check the version in the folder | ||
// seleniumServerJar: './selenium-server-standalone-3.2.0.jar', | ||
|
||
// webdriver-start can start on default port 4444 | ||
//seleniumAddress: 'http://localhost:4444/wd/hub', | ||
|
||
// Capabilities to be passed to the webdriver instance. | ||
capabilities: { | ||
'browserName': 'chrome' | ||
}, | ||
|
||
specs: ['example-spec.js'], | ||
|
||
allScriptsTimeout: 60000, | ||
|
||
// Options to be passed to Jasmine-node. | ||
jasmineNodeOpts: { | ||
showColors: true, | ||
defaultTimeoutInterval: 30000 | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
exports.config = { | ||
//seleniumAddress: 'http://localhost:4444/wd/hub', | ||
//seleniumAddress: 'http://localhost:4444/wd/hub', | ||
|
||
// seleniumServerJar: '../node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.2.0.jar', | ||
// seleniumServerJar: '../node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.2.0.jar', | ||
|
||
// Capabilities to be passed to the webdriver instance. | ||
multiCapabilities: [ | ||
{ | ||
'browserName': 'chrome', | ||
'maxInstances': 2, | ||
shardTestFiles: true | ||
} | ||
], | ||
// Capabilities to be passed to the webdriver instance. | ||
multiCapabilities: [ | ||
{ | ||
'browserName': 'chrome', | ||
'maxInstances': 2, | ||
shardTestFiles: true | ||
} | ||
], | ||
|
||
allScriptsTimeout: 60000, | ||
allScriptsTimeout: 60000, | ||
|
||
specs: ['./tests/e2e/**/*.js'], | ||
specs: ['./tests/e2e/**/*.js'], | ||
|
||
// Options to be passed to Jasmine-node. | ||
jasmineNodeOpts: { | ||
showColors: true, | ||
defaultTimeoutInterval: 30000 | ||
} | ||
// Options to be passed to Jasmine-node. | ||
jasmineNodeOpts: { | ||
showColors: true, | ||
defaultTimeoutInterval: 30000 | ||
} | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
describe('WebApp', function() { | ||
|
||
describe('index page', function(){ | ||
describe('index page', function() { | ||
|
||
browser.get('/'); | ||
browser.get('/'); | ||
|
||
it('should show the page', function() { | ||
expect(element.all(by.css('h1')). | ||
first().getText()).toBe("Headline 2"); | ||
}); | ||
it('should show the page', function() { | ||
expect(element.all(by.css('h1')). | ||
first().getText()).toBe("Headline 2"); | ||
}); | ||
|
||
}); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
describe('angularjs homepage', function() { | ||
it('should greet the named user', function() { | ||
browser.get('http://www.angularjs.org'); | ||
it('should greet the named user', function() { | ||
browser.get('http://www.angularjs.org'); | ||
|
||
element(by.model('yourName')).sendKeys('Julie'); | ||
element(by.model('yourName')).sendKeys('Julie'); | ||
|
||
var greeting = element(by.binding('yourName')); | ||
var greeting = element(by.binding('yourName')); | ||
|
||
expect(greeting.getText()).toEqual('Hello Julie!'); | ||
}); | ||
expect(greeting.getText()).toEqual('Hello Julie!'); | ||
}); | ||
|
||
describe('todo list', function() { | ||
var todoList; | ||
describe('todo list', function() { | ||
var todoList; | ||
|
||
beforeEach(function() { | ||
browser.get('http://www.angularjs.org'); | ||
beforeEach(function() { | ||
browser.get('http://www.angularjs.org'); | ||
|
||
todoList = element.all(by.repeater('todo in todoList.todos')); | ||
}); | ||
todoList = element.all(by.repeater('todo in todoList.todos')); | ||
}); | ||
|
||
it('should list todos', function() { | ||
expect(todoList.count()).toEqual(2); | ||
expect(todoList.get(1).getText()).toEqual('build an AngularJS app'); | ||
}); | ||
it('should list todos', function() { | ||
expect(todoList.count()).toEqual(2); | ||
expect(todoList.get(1).getText()).toEqual('build an AngularJS app'); | ||
}); | ||
|
||
it('should add a todo', function() { | ||
var addTodo = element(by.model('todoList.todoText')); | ||
var addButton = element(by.css('[value="add"]')); | ||
it('should add a todo', function() { | ||
var addTodo = element(by.model('todoList.todoText')); | ||
var addButton = element(by.css('[value="add"]')); | ||
|
||
addTodo.sendKeys('write a protractor test'); | ||
addButton.click(); | ||
addTodo.sendKeys('write a protractor test'); | ||
addButton.click(); | ||
|
||
expect(todoList.count()).toEqual(3); | ||
expect(todoList.get(2).getText()).toEqual('write a protractor test'); | ||
}); | ||
}); | ||
expect(todoList.count()).toEqual(3); | ||
expect(todoList.get(2).getText()).toEqual('write a protractor test'); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.