Skip to content

Instantly share code, notes, and snippets.

@evanxd
Created April 29, 2014 09:44
Show Gist options
  • Save evanxd/11395504 to your computer and use it in GitHub Desktop.
Save evanxd/11395504 to your computer and use it in GitHub Desktop.
Write marionette tests with JSON.
{
"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()"
}
]
}
@evanxd
Copy link
Author

evanxd commented Apr 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment