Giter Club home page Giter Club logo

widgetastic.patternfly5's Introduction

widgetastic.patternfly5

Python Versions PyPI version github actions Code style: black pre: black

This library offers Widgetastic Widgets for PatternFly v5, serving as an extended itteration of widgetastic.patternfly4.

Components:

Charts:

Patterns:

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

widgetastic.patternfly5's People

Contributors

catastrophe-brandon avatar digitronik avatar ikerreyes avatar jjaquish avatar jrusz avatar lightofheaven1994 avatar mayurilahane avatar mshriver avatar pre-commit-ci[bot] avatar yash2189 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

widgetastic.patternfly5's Issues

Is there a preferred way to check the value of a Switch?

As I understand it, the Switch widget does not currently implement read():

>       raise DoNotReadThisWidget(f"Widget {type(self).__name__} does not implement read()")
E       widgetastic.exceptions.DoNotReadThisWidget: Widget Switch does not implement read()

Is there a recommended way to check the value of a Switch? I would like to do the following:

  1. Check the value of Switch
  2. Perform an action depending on whether the switch is ON or OFF

At present, it appears that I can only click on a switch widget.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.