In this guide we will cover two main cases:
- Ember specific library
- vendor library
The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.
| /** | |
| * Patch the console methods in order to provide timestamp information | |
| * | |
| * Usage: | |
| * > console.log('ok') | |
| * 2012-09-06T11:52:56.769Z ok true | |
| * | |
| * Note: | |
| * The patch will only be applied with the first call. | |
| * |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |