Steps to setup the Framework
1: Open a new empty folder with your favorite Code Editor
2: git init
3: npm init -y
4: npm install codeceptjs puppeteer --save
5: npx codeceptjs init
? Do you plan to write tests in TypeScript? No
? Where are your tests located? ./*_test.js
? What helpers do you want to use? Puppeteer
? Where should logs, screenshots, and reports to be stored? ./output
? Do you want to enable localization for tests? http English (no localization)
Configure helpers...
? [Puppeteer] Base url of site to be tested https://platzi.com/home
? [Puppeteer] Show browser window Yes
? [Puppeteer] Browser viewport size 1200x900
6: npx codeceptjs gherkin:init
¿Quieres ver más aportes, preguntas y respuestas de la comunidad?