ember-twiddle icon indicating copy to clipboard operation
ember-twiddle copied to clipboard

Create a test helper to run an acceptance test against a gist

Open Gaurav0 opened this issue 10 years ago • 1 comments

Make it easier to write an acceptance test that "loads a gist" by mocking the github api responses.

Gaurav0 avatar Jul 26 '15 12:07 Gaurav0

I'd like to see us have a few more acceptance test helpers to make adding tests much easier.

Off the top of my head, I think the following would be a great start:

  • addFile - Takes a type, and filename, then adds a file via the normal UI.
  • deleteFile - Takes the filename, and removes it via the normal UI.
  • changeDisplayedFile - Takes the filename to display and either "left" or "right", then uses the normal UI to change the file displayed in panes.
  • ~~runGist - Accepts a stubbed gist, and runs the app.~~ (#94)

Many of these can be extracted from the recent acceptance tests added by @Gaurav0.

rwjblue avatar Jul 27 '15 12:07 rwjblue