Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
[TEST] Travis: Add e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
annatonger authored and vhpoet committed Feb 24, 2015
1 parent 5e579b2 commit 9768d18
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ before_script:
- "cp src/js/config-example.js src/js/config.js"
- npm install -g bower
- bower install
script: "grunt && npm run test-travis"
- npm install -g se-interpreter
script: "grunt && npm run test-travis && se-interpreter test/selenium/interpreter_config.json"
notifications:
email:
false
Expand All @@ -19,3 +20,7 @@ notifications:
on_success: change
on_failure: always
on_start: false
env:
global:
- SAUCE_USERNAME=tonga
- secure: "VJFHj5fr46Qf7h34xa/W6FmGvknPH57eQLJoEjKlZUYn0EGx9EliCdENfzAbtr3e4GnNvQh6X2bLA/lB7TRzoD84oyGkllkMayevQm/dViJbUBQsl7HOa6VwUwugW+o7T3+vPM4y5qqFv1B/fs3Fthl+eKUatccy9qK4xra1Hso="
23 changes: 23 additions & 0 deletions test/selenium/interpreter_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "interpreter-config",
"configurations": [
{
"settings": [
{
"driverOptions": {
"host": "ondemand.saucelabs.com",
"port": 80
},
"browserOptions": {
"browserName": "googlechrome",
"username": "${SAUCE_USERNAME}",
"accessKey": "${SAUCE_ACCESS_KEY}"
}
}
],
"scripts": [
"test/selenium/tests/*"
]
}
]
}
25 changes: 25 additions & 0 deletions test/selenium/tests/openRT.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"type": "script",
"seleniumVersion": "2",
"formatVersion": 2,
"steps": [
{
"type": "get",
"url": "https://www.rippletrade.com/"
},
{
"type": "waitForTextPresent",
"text": "XRP"
},
{
"type": "verifyTextPresent",
"text": "Trade hundreds of assets, from XRP to crypto to gold to fiat."
}
],
"data": {
"configs": {},
"source": "none"
},
"inputs": [],
"timeoutSeconds": 60
}

0 comments on commit 9768d18

Please sign in to comment.