Skip to content

frappe/erpnext_ui_tests

Repository files navigation

ERPNext UI Tests

UI UI Coverage

This repository contains Integration tests for ERPNext features written in Cypress. These tests are run on GitHub Actions via cron every day.

Local Setup

Prerequisites: Install and setup Frappe Framework

Follow these steps to set this up on your local machine:

  1. Change directory into frappe-bench

    # replace ~/frappe-bench with the path where you have installed frappe-bench
    
    cd ~/frappe-bench
  2. Fetch erpnext and erpnext_ui_tests (this app) on your frappe-bench installation

    bench get-app erpnext
    bench get-app erpnext_ui_tests
  3. Create a new site and install these apps

    bench new-site erpnextui.test --install-app erpnext erpnext_ui_tests
  4. Add to hosts so that the site is accessible via hostname on the browser

    bench --site erpnextui.test add-to-hosts
  5. Complete setup wizard by running this command

    bench --site erpnextui.test execute erpnext.setup.utils.before_tests
  6. Run the following command to open up the Cypress runner

    bench --site erpnextui.test run-ui-tests erpnext_ui_tests

License

GPL-v3.0

About

This repository contains Integration tests for ERPNext features written in Cypress. These tests are run on GitHub Actions via cron every day.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published