DEV Community

Discussion on: Page Object Pattern + Reusable Functions in Cypress

nikomadar profile image
Niko • Edited on

I prefer to do the assertions in the test file. Becuase then the POM element can be used for various assertions without having to duplicate them.
Also the test should be where all the checks take place. If the check is in an external function then we lose test clarity.