Logo

BHIMA

Basic Hospital Information Management Application

Bhima is a free, open source accounting and hospital information management system (HIMS) tailored for rural hospitals in Africa. We are an international team based in the Democratic Republic of the Congo.

End-to-end Tests

BHIMA has a large collection of end-to-end tests using the Playwright testing environment. The following guidelines how to get the tests working in your environment. This description assumes that you have already set up BHIMA development environment (see Installation).

  1. Install Playwwright (the tests currently only use the chromium browser):
      npm install playwright chromium
    
  2. Verify that everything is consistent. The following commands should give the same version numbers:
      grep 'playwright/test' yarn.lock   # if you are using yarn
      grep 'playwright/test' package.json
      npx playwright --version
    

NOTE: If you upgrade your version of Playwright in your sandbox, you may need to run this command again to update the browsers for Playwright.

  1. Run the end-to-end tests (see package.json for the commands for this).