Skip to content

Files

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

These are selenium python tests for testing the Safe Places web application.

Pre-requisites

Execution

  • Just run "pytest" from the repo root.

CI Execution

Preparation

Dockerized Setup

  • Configure the Dockerfile under tests/docker/testhost to add appropriate environment variables
    • the BASE_TEST_URL should be the URL of the frontend server being tested
    • the SELENIUM_URL should refer to the selenium standalone server started in docker in the for http://URL:4444/wd/hub

Local setup

  • In the ui_test.py code, set self.local_mode to True
  • Set environment variables appropriate to your local environment

Execution

WARNING - THIS SHOULD NOT YET BE INTEGRATED WITH CORE CI FLOWS UNTIL TESTED

  • Start a selenium standalone server: docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome
  • Start a test host:
    • docker build -t testhost .
    • docker run testhost
  • Start a frontend server without back-end