Comments (3)
The tests in https://github.com/fschulze/zope.testbrowser/tree/radio-4.0.4 work when using the buildout and running the test
script.
from zope.testbrowser.
The failure looks like this:
**********************************************************************
File "narrative.rst", line ?, in default
Failed example:
browser.getControl(name='radio-value-a').getControl(value='true', index=0)
Expected:
<ItemControl name='radio-value-a' type='radio' optionValue='true' selected=False>
Got:
<ItemControl name='radio-value-a' type='radio' optionValue='true' selected=True>
**********************************************************************
from zope.testbrowser.
The problem here is that RadioItemControl.selected = True
is translated into RadioListControl.value = RadioItemControl.value
, which cannot disambiguate items with the same value.
We could be assigning to WebTest's Radio
control's selectedIndex
instead of value
to avoid this issue.
from zope.testbrowser.
Related Issues (20)
- displayValue setter silently ignores values which are not in displayOptions HOT 1
- Sphinx doctests are broken in Python 3 HOT 2
- Fix DeprecationWarnings
- Careless use of CSS selectors breaks with new BeautifulSoup HOT 1
- Tests are broken on master HOT 3
- Cookie tests fail in different locales
- ItemControl.click() lets you uncheck radio buttons
- getLink() used to see iframes, now it doesn't
- Value of unchecked checkboxes changed from False to [] in zope.testbrowser 5.0.0 HOT 2
- getControl('Label') cannot find hidden inputs any more
- .reload() fails if the previous request was a POST HOT 1
- .reload() does not follow redirects nor does it raise exceptions for bad HTTP statuses HOT 1
- getLink() used to consider the whole enclosed text content, now it only looks at the directly contained text
- Allow option to prevent auto redirection HOT 1
- Python 3.8 support HOT 2
- getLink now tests regexes using .match, not .search HOT 1
- getLink uses stale cached HTML after goBack
- Browser._preparedRequest is a bit overenthusiastic about setting Referer HOT 1
- Browser._findAllControls() has wrong behaviour with no-name inputs and checkboxes HOT 1
- Replace `.browser.SetattrErrorsMixin` with `__slots__`?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zope.testbrowser.