This repository contains Integration tests for ERPNext features written in Cypress. These tests are run on GitHub Actions via cron every day.
Prerequisites: Install and setup Frappe Framework
Follow these steps to set this up on your local machine:
-
Change directory into
frappe-bench
# replace ~/frappe-bench with the path where you have installed frappe-bench cd ~/frappe-bench
-
Fetch
erpnext
anderpnext_ui_tests
(this app) on yourfrappe-bench
installationbench get-app erpnext bench get-app erpnext_ui_tests
-
Create a new site and install these apps
bench new-site erpnextui.test --install-app erpnext erpnext_ui_tests
-
Add to hosts so that the site is accessible via hostname on the browser
bench --site erpnextui.test add-to-hosts
-
Complete setup wizard by running this command
bench --site erpnextui.test execute erpnext.setup.utils.before_tests
-
Run the following command to open up the Cypress runner
bench --site erpnextui.test run-ui-tests erpnext_ui_tests
GPL-v3.0