Skip to content
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

Merged
merged 6 commits into from
Jun 5, 2017

Conversation

mwistrand
Copy link
Contributor

@mwistrand mwistrand commented Apr 26, 2017

Type: bug / feature

The following has been addressed in the PR:

  • There is a related issue
  • All code matches the style guide
  • Unit or Functional tests are included in the PR

Description:

Adds basic functional tests for the ComboBox widget, using the example page as the testing sandbox.

Resolves #151

@dylans dylans modified the milestones: 2017.04, 2017.05 Apr 26, 2017
@tomdye
Copy link
Member

tomdye commented May 11, 2017

@mwistrand please update to use the css-modules class names to target nodes

@mwistrand mwistrand force-pushed the combobox-functional-tests branch from ef67178 to 2e00348 Compare May 11, 2017 19:16
@codecov
Copy link

codecov bot commented May 11, 2017

Codecov Report

Merging #128 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/combobox/ComboBox.ts 99.42% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ee6d48f...3a50d88. Read the comment docs.

@tomdye
Copy link
Member

tomdye commented May 12, 2017

@mwistrand you may still need to use extraClasses on the example page to target specific comboBoxes

@mwistrand mwistrand force-pushed the combobox-functional-tests branch 2 times, most recently from 7273892 to e62dbb8 Compare May 17, 2017 15:56
import * as keys from 'leadfoot/keys';
import * as css from '../../styles/comboBox.m.css';

const DELAY = 300;
Copy link
Contributor

@smhigley smhigley May 25, 2017

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)

Copy link
Contributor Author

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.

@tomdye
Copy link
Member

tomdye commented May 26, 2017

@mwistrand this needs a rebase

@mwistrand mwistrand force-pushed the combobox-functional-tests branch from e62dbb8 to 766b952 Compare May 26, 2017 14:08
Copy link
Contributor

@smhigley smhigley left a 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!

Matt Wistrand added 6 commits June 5, 2017 09:37
- 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.
@mwistrand mwistrand force-pushed the combobox-functional-tests branch from 766b952 to 3a50d88 Compare June 5, 2017 14:48
@mwistrand mwistrand merged commit cc01318 into dojo:master Jun 5, 2017
@mwistrand mwistrand deleted the combobox-functional-tests branch June 12, 2017 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants