-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ComboBox functional tests #128
Conversation
@mwistrand please update to use the css-modules class names to target nodes |
ef67178
to
2e00348
Compare
Codecov Report
@@ Coverage Diff @@
## master #128 +/- ##
=========================================
+ Coverage 99.09% 99.1% +<.01%
=========================================
Files 19 19
Lines 999 1000 +1
Branches 300 300
=========================================
+ Hits 990 991 +1
Misses 1 1
Partials 8 8
Continue to review full report at Codecov.
|
@mwistrand you may still need to use |
7273892
to
e62dbb8
Compare
import * as keys from 'leadfoot/keys'; | ||
import * as css from '../../styles/comboBox.m.css'; | ||
|
||
const DELAY = 300; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use a consistent value for the delay? (Not that it's wrong here, I've just seen 300, 400, and 500 in three different functional tests)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may need to be longer in other tests, but 300ms is enough here. I'd rather not make this one any longer than it has to be; if we can lower the others without the tests failing intermittently, then I would be fine with that.
@mwistrand this needs a rebase |
e62dbb8
to
766b952
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
- Use SeleniumTunnel for tests. - Use CSS module for ComboBox functional tests. - Skip keyboard tests that do not work in FF. - Fix tests to execute more accurately across supported browsers.
- Do not run arrow key tests on touch devices or in Safari.
When the user interacts with the clear button, the widget should be invalidated regardless of whether the input value has changed.
766b952
to
3a50d88
Compare
Type: bug / feature
The following has been addressed in the PR:
Description:
Adds basic functional tests for the
ComboBox
widget, using the example page as the testing sandbox.Resolves #151