omegafox/tests
daijro 68216153f3 Add Playwright tests
Adds Playwright's async tests to ensure that functionality is not broken.
2024-11-03 06:14:39 -06:00
..
assets Add Playwright tests 2024-11-03 06:14:39 -06:00
async Add Playwright tests 2024-11-03 06:14:39 -06:00
async_imp Add Playwright tests 2024-11-03 06:14:39 -06:00
golden-firefox Add Playwright tests 2024-11-03 06:14:39 -06:00
testserver Add Playwright tests 2024-11-03 06:14:39 -06:00
__init__.py Add Playwright tests 2024-11-03 06:14:39 -06:00
conftest.py Add Playwright tests 2024-11-03 06:14:39 -06:00
local-requirements.txt Add Playwright tests 2024-11-03 06:14:39 -06:00
pyproject.toml Add Playwright tests 2024-11-03 06:14:39 -06:00
README.md Add Playwright tests 2024-11-03 06:14:39 -06:00
run-tests.sh Add Playwright tests 2024-11-03 06:14:39 -06:00
server.py Add Playwright tests 2024-11-03 06:14:39 -06:00
setup-venv.sh Add Playwright tests 2024-11-03 06:14:39 -06:00
utils.py Add Playwright tests 2024-11-03 06:14:39 -06:00

Camoufox Tests

Ensures that Playwright functionality is not broken.


This directory is based on the original Playwright-Python tests.

It has been modified to skip tests that use the following features:

  • Injecting JavaScript into the page or writing to DOM. Camoufox's page.evaluate only supports reading values, not executing within the page context.
  • Overriding the User-Agent.
  • Any tests specific to Chromium or Webkit.

Usage

Setting up the environment

Cd to this directory and run the following command to setup the venv and install the dependencies:

bash setup-venv.sh

Running the tests

Run via the shell script:

bash run-tests.sh --headful --executable-path /path/to/camoufox-bin

Or through the Makefile:

make tests headful=true