Created
April 29, 2014 09:44
-
-
Save evanxd/11395504 to your computer and use it in GitHub Desktop.
Write marionette tests with JSON.
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
{ | |
"testcase": "should be show in header, highlighted day after tap today", | |
"app": "app://calendar.gaiamobile.org", | |
"operations": [ | |
{ | |
"target": "#today-css-selector", | |
"condition": "document.querySelector('#today-css-selector').innerHTML === new Date().getDate()", | |
"action": "tap" | |
} | |
], | |
"assert": [ | |
{ | |
"actual": "document.querySelector('#month-view-item').innerHTML", | |
"expected": "new Date().getDatet()" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://cukes.info/