Add Stellar Burgers API tests - #1
supogolik-code wants to merge 2 commits into
Conversation
|
|
||
| public class OrderClient extends BaseApiClient { | ||
|
|
||
| public Response getIngredients() { |
There was a problem hiding this comment.
⛔️Нужно исправить. Для всех методов, описывающих шаги теста, необходимо использовать аннотацию @step
| return name; | ||
| } | ||
|
|
||
| public Map<String, String> toRequestBody() { |
There was a problem hiding this comment.
⛔️Нужно исправить.В теле передавать данные нужно через сериализацию. Это более продвинутый вариант, в теории он описан. Поправь, пожалуйста, этот момент во всем коде.
| userClient = new UserClient(); | ||
| } | ||
|
|
||
| @Test |
There was a problem hiding this comment.
| firstResponse.then().statusCode(200); | ||
|
|
||
| userClient.create(user).then() | ||
| .statusCode(403) |
There was a problem hiding this comment.
| } | ||
|
|
||
| @Test | ||
| public void loginWithWrongCredentialsReturnsUnauthorized() { |
There was a problem hiding this comment.
⛔️Нужно исправить. Должно быть два теста:
- Неверный логин
- Неверный пароль
No description provided.