Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/redhatqe/widgetastic.patternfly4

Library of Patternfly v4 components for Widgetastic.
https://github.com/redhatqe/widgetastic.patternfly4

patternfly python python-selenium widgetastic

Last synced: 3 days ago
JSON representation

Library of Patternfly v4 components for Widgetastic.

Awesome Lists containing this project

README

        

# widgetastic.patternfly4

[![Build status](https://github.com/RedHatQE/widgetastic.patternfly4/workflows/wt.pf4%20tests/badge.svg)](https://github.com/RedHatQE/widgetastic.patternfly4/actions)
[![codecov](https://codecov.io/gh/RedHatQE/widgetastic.patternfly4/branch/master/graph/badge.svg)](https://codecov.io/gh/RedHatQE/widgetastic.patternfly4)
[![PyPI version](https://badge.fury.io/py/widgetastic.patternfly4.svg)](https://badge.fury.io/py/widgetastic.patternfly4)
[![Documentation status](https://readthedocs.org/projects/widgetasticpatternfly4/badge/?version=latest)](https://widgetasticpatternfly4.readthedocs.io/en/latest/?badge=latest)

Library of Patternfly v4 (aka Next) components for [Widgetastic](https://github.com/RedHatQE/widgetastic.core).

## Components list

Alert -

Breadcrumb -

Button -

Bullet Chart -

Calendar month -

Card -

Chip Group -

Clipboard copy -

Context Selector -

Description list -

Donut Chart -

Dual list selector -

Drawer -

Dropdown -

FormSelect -

LineChart -

Menu -

Modal -

Nav -

Options Menu -

Pagination -

Pie Chart -

Popover -

Progress -

Radio -

Select -

Slider -

Switch -

Table -

Tabs -

Title -

## Contribution guide

```bash
# create a virtual environment
python3 -m venv /path/to/your/virtualenv/wt.pf4
source /path/to/your/virtualenv/wt.pf4/bin/activate

# update pip and its friends
pip install -U pip setuptools wheel

# clone the repo
git clone https://github.com/RedHatQE/widgetastic.patternfly4.git

# install pre-commit
cd widgetastic.patternfly4
# 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](https://patternfly-react.surge.sh).
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}](https://hub.docker.com/u/selenium).
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:

```bash
BROWSER=firefox pytest -v testing -n 4
```