/CodeCeptJs

Primary LanguageJavaScript

This is just a small part of my end-to-end auto tests.

I propose to look at the code of the modalCheck.js function. Our story redactor has many different modals, modalCheck.js func test them. We can call it in test just by: I.modalCheck("create_Placeholder"); modalCheck.js checks: the text, css by grabCss.js func & buttons by grabElements.js func, in each modal.

And second example is Checking the position of an element func, this function checks the coordinates of elements between different events. For example you can look at editButton.js

Last one is rateUs.js, the test continues less than 7 seconds but checks almost all the functionality of one of the widgets. In addition, the test uses the visual compare function.

One of the great advantages of CodeCeptJs is that it's very easy to follow up on someone else's work, easy to read code. And last but not least, the test environment is set up very quickly, there is integration with popular helpers like PLaywright, Puppeteer and Appium & Detox.