Ghost/ghost/admin/tests/integration/components
Kevin Ansfield f1512d12c2 success/failure state spinner buttons (#566)
refs https://github.com/TryGhost/Ghost/issues/7515
- changes to `gh-task-button`:
  - can take `buttonText` (default: "Save"), `runningText` ("Saving"), `successText` ("Saved"), and `failureText` ("Retry") params
  - positional param for `buttonText`
  - default button display can be overridden by passing in a block, in that scenario the component will yield a hash containing all states to be used in this fashion:
    ```
    {{#gh-task-button task=myTask as |task|}}
    {{if task.isIdle "Save me"}}
    {{if task.isRunning "Saving"}}
    {{if task.isSuccess "Thank you!"}}
    {{if task.isFailure "Nooooooo!"}}
    {{/gh-task-button}}
    ```
- update existing uses of `gh-task-button` to match new component signature
2017-03-07 10:28:52 -07:00
..
modals tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-alert-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-alerts-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-cm-editor-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-feature-flag-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-file-uploader-test.js Update styles for content screen, buttons, and app frame 2017-02-16 19:50:05 +00:00
gh-image-uploader-test.js 🔥 remove URL input option from image upload components 2017-03-03 11:01:55 -06:00
gh-image-uploader-with-preview-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-navigation-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-navitem-test.js fix double-render issues with validation-state mixin 2017-02-01 17:03:38 -06:00
gh-navitem-url-input-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-notification-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-notifications-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-profile-image-test.js 🔥 remove URL input option from image upload components 2017-03-03 11:01:55 -06:00
gh-search-input-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-subscribers-table-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-tag-settings-form-test.js fix double-render issues with validation-state mixin 2017-02-01 17:03:38 -06:00
gh-tags-management-container-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-task-button-test.js success/failure state spinner buttons (#566) 2017-03-07 10:28:52 -07:00
gh-theme-table-test.js fix tests for new themes table styles (#553) 2017-02-27 12:34:46 +00:00
gh-timezone-select-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-trim-focus-input-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
gh-validation-status-container-test.js fix double-render issues with validation-state mixin 2017-02-01 17:03:38 -06:00
transfer-owner-test.js Update styles for content screen, buttons, and app frame 2017-02-16 19:50:05 +00:00