Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: исправление ошибки в Postman тесте "Review update to positive" #2

Open
Bo4oN opened this issue Jul 3, 2023 · 0 comments

Comments

@Bo4oN
Copy link
Owner

Bo4oN commented Jul 3, 2023

В теле запроса передаются

  "userId": 2,
  "filmId": 2,

В тесте проверяется что они равны 1

pm.test("Test review 'userId' field", function () {
    var jsonData = pm.response.json();
    pm.expect(jsonData).to.have.property('userId');
    pm.expect(jsonData.userId, '"userId" field must be "1"').to.eql(1);
});
pm.test("Test review 'filmId' field", function () {
    var jsonData = pm.response.json();
    pm.expect(jsonData).to.have.property('filmId');
    pm.expect(jsonData.filmId, '"filmId" field must be "1"').to.eql(1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant