enthought / enthought/traitsui

Add 'AvailableOptions' query class for UI Tester

Open
#1,288 0 comments 0 reactions 0 assignees View on GitHub
component: test suite
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

In some cases it may be useful to be able to query what the available options in a enum editor, or checklist editor are for example.
This issue was motivated by traitsui examples: https://github.com/enthought/traitsui/blob/master/traitsui/examples/demo/Dynamic_Forms/dynamic_selector.py and https://github.com/enthought/traitsui/blob/master/traitsui/examples/demo/Advanced/Dynamic_EnumEditor_demo.py
where the available options to be selected are dynamic and depend on the gui state. When writing a test, such a `query.AvailableOptions` class would be useful to verify if the set of available choices is correctly updating.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.