Commit Graph

151 Commits

Author SHA1 Message Date
Karina Kwiatek b167c4e938 Add tests for privacy settings 2022-01-13 21:42:06 +01:00
Karina Kwiatek 9c84f946ff Fix test failing under macOS 2022-01-13 21:42:06 +01:00
Georg Gadinger 29923fac84 add validator for typoed emails
It happens quite often that people typo their email address (I blame
phone keyboards for that).  Catch common cases in a validator and
tell the user that they have a typo in their email.

Why yes, I did write the tests for this first, thanks for asking!
2022-01-11 19:18:23 +01:00
Andreas Nedbal 515e6d09ff Use text ellipsis instead of three single dots for shortening
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
2022-01-10 22:53:58 +01:00
Andreas Nedbal e8d3b9629d Use proper indentation for test values
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-10 22:53:58 +01:00
Andreas Nedbal ba280f7996 Add tests for `ApplicationHelper::TitleMethods` 2022-01-10 22:53:58 +01:00
Andreas Nedbal 48c9e6132b Split graph and bootstrap helper tests into own files 2022-01-10 22:53:58 +01:00
Karina Kwiatek d3aaaeb12d
Double question character limit (#292) 2022-01-10 22:01:47 +01:00
Karina Kwiatek 136e2fa016
Merge pull request #272 from Retrospring/feature/social-post-tagging
Add the ability to post to services with a tag
2022-01-07 19:40:52 +01:00
Karina Kwiatek 96e48a833b
Merge pull request #194 from Retrospring/refactor/user-bans
Implement ban history
2022-01-06 14:05:33 +01:00
Karina Kwiatek b398265a98 Address review comments from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-06 13:59:04 +01:00
Karina Kwiatek 683fffd734 Add the ability to post to services with a tag 2022-01-05 19:49:59 +01:00
Georg Gadinger 3c58257d21 remove tumblr
Resolves #274
2022-01-05 19:32:52 +01:00
Karina Kwiatek d06e2c97b2 Add test for blanking out a user's profile if they were banned for spam 2022-01-02 19:50:44 +01:00
Karina Kwiatek 7677ed21a4 Update tests for unbanning users 2022-01-02 19:50:44 +01:00
Karina Kwiatek 0659ff1f9a Update tests for unbanning users 2022-01-02 19:50:44 +01:00
Karina Kwiatek 6500d7ac71 Update usages of bans 2022-01-02 19:50:44 +01:00
Karina Kwiatek e4241d2001 Create user ban model
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-02 19:50:01 +01:00
Andreas Nedbal 0a530bfd63 Add test cases for invalid URIs in Markdown 2022-01-02 19:31:58 +01:00
Karina Kwiatek b7ce9cdbba
Merge pull request #222 from Retrospring/feature/muting 2022-01-02 15:31:49 +01:00
Karina Kwiatek 9ce1fc0ce4 Address review comments from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-01 22:10:13 +01:00
Karina Kwiatek 5a597fca5c Add test for `ServicesController` 2022-01-01 21:58:36 +01:00
Karina Kwiatek 6c0e6b1d30 Create mute rules AJAX controller 2022-01-01 00:38:38 +01:00
Karina Kwiatek f85769eb55 Add mute rules 2022-01-01 00:38:36 +01:00
Andreas Nedbal 2c72278cdd Add tests to check for `#question_markdown` not processing markup 2021-12-31 22:40:38 +01:00
Andreas Nedbal bc65b42b02 Add tests for `StaticController#linkfilter` 2021-12-31 22:40:38 +01:00
Andreas Nedbal 5eb297136b Add tests for `MarkdownHelper` 2021-12-31 22:40:38 +01:00
Karina Kwiatek 2a2bd6ad14
Merge pull request #250 from Retrospring/eager-loading
Eager load relationships for questions, answers and users
2021-12-31 22:37:41 +01:00
Karina Kwiatek 817c221551 Add basic test for user questions 2021-12-31 15:56:15 +01:00
Karina Kwiatek 2f355d5041 Add basic tests for followers & following in `UserController` 2021-12-31 15:36:16 +01:00
Karina Kwiatek 7e57735b88 Add basic test for answer & user show views 2021-12-31 13:59:15 +01:00
Andreas Nedbal 51bb2ae425 Add tests for new answer page theme logic 2021-12-30 02:03:34 +01:00
Karina Kwiatek b438c89256 Fix broken tests 2021-12-28 15:11:41 +01:00
Karina Kwiatek a534dd04d5 Test all cases of error handling for `ShareWorker` 2021-12-28 03:59:45 +01:00
Karina Kwiatek 45dae78ed0 Adjust `ShareWorker` test to not be dependent on config options 2021-12-28 03:03:59 +01:00
Karina Kwiatek d73e269d85 Test `ShareWorker`'s handling of unhandled exceptions 2021-12-27 23:02:32 +01:00
Karina Kwiatek 0b926a43e4 Test `ShareWorker`'s handling of deleted records 2021-12-27 18:53:59 +01:00
Andreas Nedbal b544145b93 Fix `SocialHelper::TwitterMethods` tests so they work anywhere 2021-12-27 14:28:11 +01:00
Andreas Nedbal 8dd14e4a05 Fix `SocialHelper::TumblrMethods` tests so they work anywhere 2021-12-27 14:28:11 +01:00
Andreas Nedbal 719e393ed1 Add test for `Services::Tumblr` 2021-12-27 14:28:11 +01:00
Andreas Nedbal 4ddfba9a79 Add tests for `SocialHelper::TumblrMethods` 2021-12-26 22:07:58 +01:00
Andreas Nedbal b202a1f7e7 Add tests for `SocialHelper::TwitterMethods` 2021-12-26 22:07:42 +01:00
Karina Kwiatek 053ebafbc5
Merge pull request #213 from Retrospring/refactor/profile
Move profile fields to seperate table
2021-12-25 22:44:10 +01:00
Karina Kwiatek 570425821f Add test for handling answers that don't need to be shortened for tweets 2021-12-25 22:27:32 +01:00
Karina Kwiatek 3204aaa2e9 Add test for tweet shortening
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2021-12-25 22:08:20 +01:00
Karina Kwiatek fa025ced92 Update `Ajax::AnswerController` test to expect multiple `ShareWorker` jobs 2021-12-25 15:22:19 +01:00
Karina Kwiatek 65fa3ff018 Add test for updating user profile 2021-12-22 00:48:05 +01:00
Karina Kwiatek 00496a1596 Update remaining references to profile fields 2021-12-22 00:03:19 +01:00
Andreas Nedbal f8af42b16f fix user creation in test case 2021-10-03 21:52:07 +02:00
Andreas Nedbal 85210589cb add test case for user count on about page 2021-10-03 21:26:46 +02:00