Create new user -> create new profile test
new profile created -> create default image test
multiple likes on one comment/post by the same user test
try to upload too big photo to the formcheck if the form is invalidcheck if the correct message is rendered
-
GETstatus_code = 200check redirection to index for logged users
-
POSTcreate user and try to login with its datacheck if user logged intest next redirection
check invalid password behaviour -> context with correct error msg (force language setting first)
status_code = 302check user logged-in? -> logout -> user logged-out?check redirection to index after logout
GETstatus_code = 200check redirection to index for logged users
POSTstatus_code = 200username, email, password empty test -> correct error msgpassword != confirmation test -> correct error msguser already existscreate usertry to create user with the same usernamecheck if correct error msg
correct registerstatus_code = 302check redirection to indexcheck if new user exists
status_code = 200no posts -> 1 page available11 posts -> 2 pages available
-
login-required test -
GET method not allowed test -> status_code = 405 -
POSTpost post/commentpost to post-comment/post v post-comment/commentcheck if post existscheck if redirection url and status code is correct
check comment on non-existing post status code (404)
-
PUTstatus_code = 201edit post/commentsend request with new datacheck if post's or comment's content has changed
incorrect post/comment idsend incorrect post's or comment's idcheck if status_code is 404 and error msg is correct
-
DELETEstatus_code = 204delete post/commentsend request with post's or comment's idcheck if post or comment got deleted
incorrect idsend incorrect post's or comment's idcheck if status_code is 404 and error msg is correct
login-required teststatus_code = 200no posts -> 1 page available11 posts -> 2 pages available2 posts: by this user and another -> make sure only current is visiblefollow by 5 users -> make sure that correct number is send as a contextfollow 5 users -> make sure that correct number is send as a context
login-required testGETstatus_code = 200
POSTsend form and check if user profile got updatedstatus_code = 302check if redirection works correctly
-
login-required test -
GETcheck correct like getcreate a post/commentcreate a likesend GET requestcheck if:status_code = 200like = TrueemojiType is correct
send correct action but like doesn't existcheck if status_code = 200check if like = False
send unknown actioncheck if status_code = 400check if error msg correct
send correct action but post/comment doesn't existcheck if status_code = 400check if error msg correct
-
POSTsend unknown actioncheck if status_code = 400check if error msg correct
send correct action but post/comment doesn't existcheck if status_code = 400check if error msg correct
check correct like creationstatus_code = 201like exists with proper emoji_type
-
PUTcheck correct like editingstatus_code = 201like exists with proper emoji_typecreate a like with one emoji_typerequest for emoji_type changecheck if correct emoji type saved
send unknown action and correct idcheck if status_code = 400check if error msg correct
send correct action but post/comment doesn't existcheck if status_code = 400check if error msg correct
login-required teststatus_code = 200no posts -> 1 page available11 posts -> 2 pages availableMake sure only followed users posts are visible
login-required testGETstatus_code = 405
POST:correct follow/unfollow user actionmake first follow request- ~~check if following exists ~~
check if redirection is successfulcheck status_codemake second follow request (unfollow)make sure user doesn't existcheck if redirection is successfulcheck status_code
follow a user that doesn't exist -> 404 response
Setup
create a browser handler- ~~create a user ~~
populate the user-profile with datacreate a postcreate several comments to this post
create a post using post form -> check if it existscheck if posts are in correct order (from newest to oldest)
-
Posts-
check if post's content is equal to post created -
check if post creator's name button redirects correctly to user profileclick on post creator's name buttoncheck if redirection to correct user profile works
-
edit post testspost's creator != current user -> check if edit/delete panel doesn't existpost's creator == current user -> check if edit/delete panel existspost's creator == current userclick on delete-edit-panel iconclick on edit post buttonchange the textcheck if post's content has changed
-
delete post testclick on delete-edit-panel iconclick on delete postcheck if post's content got deleted
-
show more button testcreate a second post with long textcheck if the short text post's show more button is hiddencheck if the long text post's show more button is not hidden
-
like a post testlike the postcheck if the new like exists and have correct emoji (database)check if the new like exists and have correct emoji (like-data)check if the new like has data-count = 1check if the like-counter is empty
-
change like post testlike the postchange the like to different emojicheck if the new like exists and have correct emoji (database)check if the new like exists and have correct emoji (like-data)check if the new like has data-count = 1
-
the same emoji twice testlike the postlike the post with the same emoji from a different accoutmake sure the emoji has has data-count = 2check if the like-counter = +1
-
emoji in correct orderlike the postlike the post with the same emoji from a different accoutlike the post with a different emoji from the third accountmake sure that the first emoji is first in the like-data panel
-
comment-data testcheck if comment-count is correct
-
comment button testclick comment buttoncheck if comment-section has show class
-
-
Comments-
create a comment with formcheck if the comment existscheck if its content equal to comment created
-
click on comment's creator name testclick on comment's creator namecheck if redirection to correct user profile works
-
click on comment's creator picture testclick on comment's creator picturecheck if redirection to correct user profile works
-
edit comment testscomment's creator != current user -> check if edit/delete panel doesn't existcomment's creator == current user -> check if edit/delete panel existscomment's creator == current userclick on delete-edit-panel iconclick on edit comment buttonchange the textcheck if comment's content has changed
-
delete comment testclick on delete-edit-panel iconclick on delete commentcheck if comment's content got deleted
-
show more button testcreate a comment with long textcheck if the short text comment's show more button is hiddencheck if the long text comment's show more button is not hidden
-
like a comment testlike a commentcheck if the new like exists and have correct emoji (database)check if the new like exists and have correct emoji (like-data)check if the new like has data-count = 1check if the like-counter is empty
-
change like comment testlike a commentchange the like to different emojicheck if the new like exists and have correct emoji (database)check if the new like exists and have correct emoji (like-data)check if the new like has data-count = 1
-
the same emoji twice testlike a commentlike the comment with the same emoji from a different accoutmake sure the emoji has has data-count = 2check if the like-counter = +1
-
emoji in correct orderlike a commentlike the comment with the same emoji from a different accoutlike the comment with a different emoji from the third accountmake sure that the first emoji is first in the like-data panel
-
-
check if following data is correctfollow user by 5 usersfollow 2 userscheck if user following data is correct
-
check if all bio info is correct (force english) -
check if profile picture has correct src -
check if follow/unfollow logic workscreate new userfollow the usercheck if user followedunfollow the usercheck if user is unfollowed
-
auto populate form with user dataopen edit-profile pagecheck if the form has correct info
-
update profile info testfill out the edit-profile formsubmit itcheck if user profile data has changed