CodeceptJS & Playwright seems like a good, though newer, combo for automation testing. Cypress is mature and has a slick GUI. I used this repo to test the testers, then wrote about on Dev.to.
git clone https://github.com/tomByrer/codecept-playwright-vs-cypressio-fb.git
cd codecept-playwright-vs-cypressio-fb
Then copy SECRETS-template.js
to SECRETS.js
, and edit the new file with your information.
npm i
npm run test-cypress
After a few seconds, you should see a small window. Change the browser in the uupper-right, close the examples
folder, & click to run the fb-start-event_test
:
Wait a few more seconds. After the test runs, you should see something like this:
If so, you're sucessful! If you did not get that far, close the windows and try to re-run; using a busy production website may have lag.
npm run test-codecept
This will run the test, fill the first field of the event entry form, then pause with an I.
prompt. Here you can enter more tests; read the cp-fb-start-event_test.js
for some ideas, or read the docs. Here is my output with VSCode CLI: