ita-social-projects / ita-social-projects/StreetCode

[API][Password Reset Page] Verify error message when invalid email format is entered

Open
#2,452 0 comments 0 reactions 1 assignee Claimed by @MariaPinchuk View on GitHub
(Epic#6) User Profile API Test case
Dominant language
C#
Stars
27
Forks
14
PR merge metrics
No merged PRs in 30d

Description

**Priority:** Medium

**Preconditions**
1. User is registered in the system.
2. Postman is open.
3. POST method is chosen.
4. Endpoint is entered: https://backend.historycode.online/api/Users/ForgotPassword
5. Required data is entered to the body:
{
"email": ""
}

**Steps to reproduce**
1. Enter email value:

- [ ] email without “@” (e.g. exampledomain.com)
- [ ] email without a domain (e.g. example@)
- [ ] email without a local part (e.g. @domain.com) 
- [ ] email with consecutive dots ([example..@domain.com](mailto:example..@domain.com))
- [ ] email with spaces within the address (exam [ple@domain.com](mailto:ple@domain.com))
- [ ] email without dot in domain (e.g. example@domaincom)
- [ ] email which starts or ends with special character (e.g. $[example@domain.com](mailto:example@domain.com))
- [ ] email with non-alphabetical characters in domain extension (e.g. [example@domain.c0m](mailto:example@domain.c0m))
- [ ] cyrillic letters (приклад@domain.com)
- [ ] empty email field

2. Click the "Send" button.

**Expected result**
1. Status code is 400 Bad Request.
2. Response message "Користувача з такою поштою не знайдено" is displayed.

**User story:** #2088

**Related bug:**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.