Before running end-to-end test ensure to build the no auth version of bardeen:
yarn build-noauth
Running end-to-end test
yarn test-e2e
Running end-to-end test matching specific file
yarn test-e2e -- --testPathPattern=example.ts # from root yarn test-e2e --testPathPattern=example.ts # from inside of the package
Some test(ex.: Linkedin playbook test) require credentials to be passed using environment variables:
LINKEDIN_LOGIN
LINKEDIN_PASSWORD
GMAIL_LOGIN
GMAIL_PASSWORD
LINKEDIN_LOGIN='example@example.com' LINKEDIN_PASSWORD='PaSsWorD' GMAIL_LOGIN='example@example.com' GMAIL_PASSWORD='PaSsWorD' yarn test-e2e
Use
-keepOpen
for development purposes to keep the browser open after tests:yarn test-e2e --testPathPattern=options.ts --keepOpen
Â
Â