Refactor Cypress Api Tests Part 4: Use deep.include Assertion

Refactor Cypress Api Tests Part 4: Use deep.include Assertion

gleb bahmutov

4 месяца назад

513 Просмотров

In this video, I refactor the user spec tests. We will combine multiple tests into a single one using "deep.include" assertion to check one or many known properties of an object. Then we will improve the page object method, and then I will switch to use cy-spok plugin to simplify checking nested properties. Find the code in the branch "refactor-user-spec" of the repo https://github.com/bahmutov/cypress-conduit-api
Ссылки и html тэги не поддерживаются


Комментарии: