This library allows for a structure to use playwright both for tests and as an automation script.
- Clone the repository
git clone https://github.com/aeq/playwright-actions.git - Change to directory
cd playwright-actions - run
npm i - Run the google Login setup
npx playwright test auth.setup.ts --headed - close the browser
- Initialize Google Login:
npm run init - Show help:
npm run action - Run an action:
npm run action <action-name>(Example:npm run action aeq-search) - Run an action with props:
npm run action <action-name> -- --my-prop=true(Example:npm run action aeq-search)