This project containts tests for Glific flows using the https://github.com/wwebjs/whatsapp-web.js library. This is used to demonstrate the capabilities of the library and how it can be used to test Glific flows.
The Whatsapp Web JS library allows us to interact with WhatsApp Web using a browser-like interface using puppeteer. So we can test Glific flows by sending messages to the WhatsApp Web and waiting for the responses.
$ node --version
v22.15.0
$ export WHATSAPP_NUMBER="+91 12345 67890"
$ yarn install
$ yarn test:integration
- Add more test scenarios
- Integrate with S3 store for session management