Patternfly5 widget library for Widgetastic.
Project description
widgetastic.patternfly5
This library offers Widgetastic Widgets for PatternFly v5, serving as an extended itteration of widgetastic.patternfly4.
Components:
- alert
- breadcrumb
- button
- dual-list-selector
- slider
- menus
- navigation
- forms
- tabs
- title
Charts:
Contribution guide
# clone the repo
git clone https://github.com/RedHatQE/widgetastic.patternfly5.git
cd widgetastic.patternfly5
# create a virtual environment
python3 -m venv .venv_pfy5
source .venv_pfy5/bin/activate
# update pip and its friends
pip install -U pip setuptools wheel
# install the package in editable mode
pip install -e .[dev]
pre-commit install
Testing
The library has selenium tests that are performed against Patternfly React docs. It's also configured to run the tests every time when a new version of that page is released.
Tests spawn a container from official selenium image - selenium/standalone-{chrome/firefox}.
We can check local runs via vnc http://localhost:7900
Note: Tests use podman
to manage containers. Please install it before running.
It's possible to run tests in parallel to speed up the execution. Make sure that you have xdist python plugin installed.
Use -n
key to specify a number
of workers:
BROWSER=firefox pytest -v testing -n 4
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for widgetastic.patternfly5-23.8.22.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a0b07dc9351d2a558491e2cd7aa83e69311ce51934b23e00a3bdcc0d49032a |
|
MD5 | 0e81ceaea3bfc04c0d4189de6f4b4b4a |
|
BLAKE2b-256 | a64cc610618f7274a6cd5e217940b94fbb262c4604033a852f687852dfcf6696 |