forked from HabitRPG/habitica
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
56 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,8 +1,14 @@ | ||
language: node_js | ||
node_js: | ||
- '0.10' | ||
services: | ||
- mongodb | ||
before_script: | ||
- 'npm install -g bower grunt-cli' | ||
- 'bower install' | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- cp config.json.example config.json | ||
- ./node_modules/protractor/bin/webdriver-manager update | ||
- ./node_modules/protractor/bin/webdriver-manager start & | ||
- grunt run:dev > /dev/null & |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// An example configuration file. | ||
exports.config = { | ||
// The address of a running selenium server. | ||
seleniumAddress: 'http://localhost:4444/wd/hub', | ||
|
||
// Capabilities to be passed to the webdriver instance. | ||
capabilities: { | ||
'browserName': 'firefox' | ||
}, | ||
|
||
// Spec patterns are relative to the current working directly when | ||
// protractor is called. | ||
specs: ['test/e2e/e2e.js'], | ||
|
||
// A base URL for your application under test. Calls to protractor.get() | ||
// with relative paths will be prepended with this. | ||
baseUrl: 'http://localhost:3000', | ||
|
||
// 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
'use strict'; | ||
|
||
describe('index page', function() { | ||
beforeEach(function(){ | ||
browser.ignoreSynchronization = true; | ||
browser.get('http://localhost:3000/'); | ||
}); | ||
|
||
it('shows the front page', function(){ | ||
// browser.sleep(3000); | ||
var button = element(by.className('btn')); | ||
expect(button.getText()).toEqual('Play'); | ||
}); | ||
|
||
it('shows the login form', function(){ | ||
var button = element(by.className('btn')); | ||
button.click(); | ||
|
||
}); | ||
|
||
|
||
}); |