1022 Commits

Author SHA1 Message Date
aonomike
4488008a2c Test shouting other user's and current user's post 2019-09-25 01:11:18 +03:00
aonomike
33134c1d4f Refactor shout spec
- Test unauthorized user path
2019-09-24 23:36:52 +03:00
ogerly
044e2bfed9 Allow embedded code in posts permanent in database 2019-09-23 20:08:45 +02:00
ogerly
4b11168687 confirm embeded iframes only frontend style 2019-09-23 16:11:20 +02:00
roschaefer
c24876c922 Add a double-check just to be sure 2019-09-23 13:51:21 +02:00
roschaefer
c669fc08eb Fix intermittent backend specs
@mattwr18 I still see those false positives. This should fix it.
2019-09-23 13:47:43 +02:00
Robert Schäfer
328a41ab59
Merge pull request #1677 from Human-Connection/fix-intermittent-notifications-test
Fix intermittent failing test
2019-09-23 12:31:07 +02:00
ogerly
e4c7c1125d zwischenspeichern 2019-09-23 09:11:41 +02:00
mattwr18
865c562048 Fix intermittent failing test
- the test was regularly failing our build
- change from toEqual to toMatchObject since there is more info coming
back, like errors, etc...
2019-09-23 08:09:35 +02:00
roschaefer
77d24b5a71 Add backend test for @mattwr18
This was already covered by `slugifyMiddleware.spec.js`. I do agree that
this is a better place for it. Also we're not testing GraphQL requests
here but the factories. As we're testing the existence of unique
constraints, I think it won't matter if we use factories or actual
GraphQL requests.
2019-09-23 00:09:08 +02:00
roschaefer
4fbabc879f Add tests for User validations 2019-09-20 20:16:18 +02:00
Robert Schäfer
ede9dc0d76
Merge pull request #1620 from Human-Connection/1612_refactor-moderator-spec
1612 refactor moderator spec
2019-09-20 20:01:34 +02:00
roschaefer
1952d63b3c Remove .only from moderation.spec.js
@aonomike @vbelolapotkov you made it!! You are the best.

Sure, the disable/enable can be improved by returning a union type. But
I leave that for another PR. 👍
2019-09-20 18:27:37 +02:00
Vasily Belolapotkov
7cca60358c remove FollowTypeEnum from schema 2019-09-20 16:52:12 +03:00
aonomike
347f37efe4 Add enable resources test path 2019-09-20 14:23:39 +03:00
Robert Schäfer
7759d1b98a
Merge pull request #1647 from Human-Connection/Provider_list_approval_hard_cut
Provider list approval hard cut
2019-09-19 19:56:01 +02:00
ogerly
b75ebfd004 edit providerlist + test all provider 2019-09-19 18:46:44 +02:00
Robert Schäfer
d830fa4ae4
Merge pull request #1596 from Human-Connection/1583-follow-mutation
Improve follow/ufollow mutation
2019-09-19 16:54:35 +02:00
aonomike
8f2456aec4 Test unauthanticated enable 2019-09-19 17:01:42 +03:00
Wolfgang Huß
1fe4ae6619
Merge pull request #1599 from Human-Connection/configure-emails
Configure emails
2019-09-19 11:21:18 +02:00
Alina Beck
b25d552193 follow @Tirokk and @datenbrei suggestions 2019-09-19 09:52:47 +01:00
Alina Beck
e843edeb13 unite email templates in templateBuilder 2019-09-19 01:15:52 +01:00
Alina Beck
a7d525deab refactor password reset 2019-09-19 00:55:06 +01:00
Alina Beck
b193e180c5 add wrong account html template 2019-09-19 00:42:42 +01:00
Alina Beck
e45948f4f0 use password reset template 2019-09-19 00:23:51 +01:00
Alina Beck
2bd7276523 improve padding 2019-09-19 00:14:13 +01:00
Alina Beck
a304dcbfdf add reset password template 2019-09-19 00:06:57 +01:00
aonomike
bdfc2127d5 fix code review issues 2019-09-18 22:29:14 +03:00
Alina Beck
ec0cf36256 refactor email middleware 2019-09-18 18:00:34 +01:00
aonomike
ca970eb30a Refactor disable post updates disabled 2019-09-18 17:59:29 +03:00
aonomike
e109b5f6b1 Refactor disable post updates disabledBy 2019-09-18 17:51:35 +03:00
aonomike
84c1d8ef25 Refactor to eliminate duplicate code and start implementing refactor for Post 2019-09-18 17:31:24 +03:00
Alina Beck
96ced53843 fix hover effect for language toggle 2019-09-18 15:16:53 +01:00
Alina Beck
5b8d2eb2f6 fix lint errors 2019-09-18 14:49:39 +01:00
Alina Beck
b3deea4918 add language toggle 2019-09-18 14:39:03 +01:00
ogerly
75ea8eaaf0 Provider list approval hard cut 2019-09-18 14:03:51 +02:00
mattwr18
e89aff1272 Fix bug where about must not be empty string
- add test case to test this use case since it is the default from our
UI
2019-09-18 13:09:33 +02:00
Vasily Belolapotkov
7d048b029d return user from follow/unfollow mutation 2019-09-18 09:49:59 +03:00
aonomike
3e7e240392 Refactor it updates disabled test for Comment 2019-09-17 18:59:21 +03:00
roschaefer
a8dded2263 Fix #1616 2019-09-17 17:47:26 +02:00
aonomike
5c06ba39e2 Refactor moderate Comment tests 2019-09-17 18:46:45 +03:00
Alina Beck
e53609ab14 add german translation to signup template 2019-09-17 15:28:24 +01:00
Alina Beck
24fb601739 clean up email template 2019-09-17 15:17:36 +01:00
Alina Beck
f483220590 use nodemailer-html-to-text plugin to transform html content to plain text 2019-09-17 14:27:10 +01:00
aonomike
a6f4362a3f Refactor Moderator spec tp use apollo-server-testing
- Refactor unauthentiacted path for logged in and un logged in user
2019-09-17 15:51:49 +03:00
Wolfgang Huß
d28a1f17f1 Merge branch '1276-hashtag-links-url-safe' of https://github.com/Human-Connection/Human-Connection into 1276-hashtag-links-url-safe 2019-09-17 10:01:17 +02:00
Wolfgang Huß
b06b353f6a Corrected comment to unicode letter(s) 2019-09-17 09:58:35 +02:00
Vasily Belolapotkov
eeee5f8e9b refactor graphQL queries in follow spec 2019-09-17 10:50:03 +03:00
mattwr18
7926cb39ba Improve English descriptions 2019-09-17 08:50:22 +02:00
roschaefer
431de3319f Make data-hashtag-id authoritive for #links
This adds consistency: The mention links with `@` was implemented
that way already. Instead of parsing the URL, we add some redundancy and
add another attribute: data-hashtag-id

So, what characters are valid for html attributes?
Read: https://stackoverflow.com/questions/925994/what-characters-are-allowed-in-an-html-attribute-name

Thanks to @Tirokk, who added some validations on the hahstag ids, I
think we are all set. If you try to write a hashtag with a `"` double
quotation mark for example, it gets automatically replaced with a valid
hashtag. If someone wants to send us invalid hashtag ids to the backend
directly, the regex there would filter it out.
2019-09-16 23:09:32 +02:00