Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

UI tests #184

Closed
tristen opened this Issue · 3 comments

2 participants

@tristen
Owner

Tests for UI interaction need to be built out to ensure we don't break interactions moving forward.

Looks like mocha is already in place for API side tests my plan would be to use mocha for this as well.

@tristen tristen self-assigned this
@yhahn
Owner

@tristen let me know if you want to sync up here -- curious to see what you're thinking.

@yhahn
Owner
  • Add a template var test to the style template. The vars to this template are passed in here (https://github.com/mapbox/tm2/blob/master/index.js#L148-L155). If you add a value like test: 'test' in req.query, then in the template you'll be able to only include test scripts if test is in the querystring.
  • Include chai, mocha, and a test lib for the style page in the template. Do this at the end.
  • Write a really simple test assertion. And get it to run by going to the style page at like http://localhost:3000/style?id=tmstyle:///tmp-1371d3fb&test=true

Then let's hook it up to travis + phantom.

@tristen tristen referenced this issue
Merged

UI tests #194

1 of 1 task complete
@tristen
Owner
@tristen tristen closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.