discourse/test/javascripts/acceptance
Penar Musaraj 1f45215537 FEATURE: Drafts view in user profile
* add drafts.json endpoint, user profile tab with drafts stream

* improve drafts stream display in user profile

* truncate excerpts in drafts list, better handling for resume draft action

* improve draft stream SQL query, add rspec tests

* if composer is open, quietly close it when user opens another draft from drafts stream; load PM draft only when user is in /u/username/messages (instead of /u/username)

* cleanup

* linting fixes

* apply prettier styling to modified files

* add client tests for drafts, includes a fixture for drafts.json

* improvements to code following review

* refresh drafts route when user deletes a draft open in the composer while being in the drafts route; minor prettier scss fix

* added more spec tests, deleted an acceptance test for removing drafts that was too finicky, formatting and code style fixes, added appEvent for draft:destroyed

* prettier, eslint fixes

* use "username_lower" from users table, added error handling for rejected promises

* adds guardian spec for can_see_drafts, adds improvements following code review

* move DraftsController spec to its own file

* fix failing drafts qunit test, use getOwner instead of deprecated this.container

* limit test fixture for draft.json testing to new_topic request only
2018-08-01 16:34:54 +10:00
..
about-test.js.es6 DEV: migrate acceptance tests to async await - admin, about, account created (#6111) 2018-07-19 17:35:10 +08:00
account-created-test.js.es6 DEV: migrate acceptance tests to async await - admin, about, account created (#6111) 2018-07-19 17:35:10 +08:00
admin-flags-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
admin-search-log-term-test.js.es6 DEV: migrate acceptance tests to async await - admin, about, account created (#6111) 2018-07-19 17:35:10 +08:00
admin-search-logs-test.js.es6 DEV: migrate acceptance tests to async await - admin, about, account created (#6111) 2018-07-19 17:35:10 +08:00
admin-site-text-test.js.es6 DEV: migrate acceptance tests to async await - admin, about, account created (#6111) 2018-07-19 17:35:10 +08:00
admin-suspend-user-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
admin-user-emails-test.js.es6 Make prettier happy. 2018-07-16 11:31:23 +08:00
admin-users-list-test.js.es6 DEV: migrate acceptance tests to async await - admin, about, account created (#6111) 2018-07-19 17:35:10 +08:00
admin-watched-words-test.js.es6 DEV: migrate acceptance tests to async await - admin, about, account created (#6111) 2018-07-19 17:35:10 +08:00
badges-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
category-chooser-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
category-edit-security-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
category-edit-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
category-hashtag-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
composer-actions-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
composer-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
composer-topic-links-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
create-account-user-fields-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
custom-html-set-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
custom-html-template-test.js.es6 DEV: migrate acceptance tests to async await - badges, category, composer, customHTML 2018-07-19 13:52:48 +02:00
dashboard-next-test.js.es6 fixes dashboard next spec (#6132) 2018-07-21 10:29:58 -04:00
emoji-picker-test.js.es6 DEV: migrate acceptance tests to async await - dashboard, emoji, group 2018-07-19 14:00:03 +02:00
emoji-test.js.es6 DEV: migrate acceptance tests to async await - dashboard, emoji, group 2018-07-19 14:00:03 +02:00
forgot-password-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
group-card-mobile-test.js.es6 DEV: migrate acceptance tests to async await - dashboard, emoji, group 2018-07-19 14:00:03 +02:00
group-card-test.js.es6 DEV: migrate acceptance tests to async await - dashboard, emoji, group 2018-07-19 14:00:03 +02:00
group-index-test.js.es6 DEV: migrate acceptance tests to async await - dashboard, emoji, group 2018-07-19 14:00:03 +02:00
group-manage-interaction-test.js.es6 DEV: migrate acceptance tests to async await - dashboard, emoji, group 2018-07-19 14:00:03 +02:00
group-manage-logs-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
group-manage-membership-test.js.es6 DEV: migrate acceptance tests to async await - dashboard, emoji, group 2018-07-19 14:00:03 +02:00
group-manage-profile-test.js.es6 DEV: migrate acceptance tests to async await - dashboard, emoji, group 2018-07-19 14:00:03 +02:00
group-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
groups-index-test.js.es6 DEV: migrate acceptance tests to async await - dashboard, emoji, group 2018-07-19 14:00:03 +02:00
groups-new-test.js.es6 DEV: migrate acceptance tests to async await - dashboard, emoji, group 2018-07-19 14:00:03 +02:00
invite-accept-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
invite-show-user-fields-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
jump-to-test.js.es6 FEATURE: allows to jump to a date in a topic 2018-07-19 16:00:13 +02:00
login-required-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
login-with-email-and-hide-email-address-taken-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
login-with-email-and-no-social-logins-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
login-with-email-disabled-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
login-with-email-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
mobile-discovery-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
mobile-sign-in-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
mobile-users-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
modal-test.js.es6 DEV: migrate acceptance tests to async await - invite, login, mobile 2018-07-19 16:38:37 +02:00
password-reset-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
personal-message-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
plugin-outlet-connector-class-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
plugin-outlet-multi-template-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
plugin-outlet-single-template-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
preferences-test.js.es6 fix prettier offense 2018-07-30 12:43:10 +02:00
queued-posts-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
raw-plugin-outlet-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
reports-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
search-full-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
search-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
shared-drafts-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
sign-in-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
static-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
tag-hashtag-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
tags-test.js.es6 DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
topic-anonymous-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
topic-discovery-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
topic-edit-timer-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
topic-notifications-button-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
topic-test.js.es6 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
unknown-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
user-anonymous-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
user-card-test.js.es6 DEV: migrate acceptance tests to async await - plugin, reports, user, topic 2018-07-19 16:40:12 +02:00
user-test.js.es6 FEATURE: Drafts view in user profile 2018-08-01 16:34:54 +10:00
users-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00