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

Convert all selenium tests to use xvfb. #677

Merged
merged 8 commits into from
Mar 16, 2017
Merged

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Mar 15, 2017

The d3 renderer was issuing an undefined event when it was resized. This has been corrected to issue the d3.rescale event.

The tests in testing/test-cases/selenium-tests/featureVisible are already handled by tests/cases/feature.js, so they have been removed without conversion.

Taking a screenshot of mixed d3 and vgl layers could erroneously place the d3 layers on top. This has been fixed.

The d3 renderer was issuing an undefined event when it was resized.  This has been corrected to issue the d3.rescale event.

The tests in testing/test-cases/selenium-tests/featureVisible are already handled by tests/cases/feature.js, so they have been removed without conversion.

Taking a screenshot of mixed d3 and vgl layers could erroneously place the d3 layers on top.  This has been fixed.
@manthey
Copy link
Contributor Author

manthey commented Mar 15, 2017

There may be other files we can get rid of now that selenium is no longer in use.

There are some files in the testing directory which probably should be moved to the tests directory.

onIdle should include these, too.
@manthey manthey force-pushed the convert-selenium-tests branch 2 times, most recently from 879e7e3 to cdcf47d Compare March 15, 2017 18:00
Try to handle slow tests better by waiting for more identifiable conditions.
@codecov-io
Copy link

codecov-io commented Mar 15, 2017

Codecov Report

Merging #677 into master will increase coverage by 1.17%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #677      +/-   ##
==========================================
+ Coverage   90.75%   91.93%   +1.17%     
==========================================
  Files          84       84              
  Lines        8736     8749      +13     
==========================================
+ Hits         7928     8043     +115     
+ Misses        808      706     -102
Impacted Files Coverage Δ
src/mapInteractor.js 95.4% <ø> (+0.34%)
src/quadFeature.js 100% <100%> (ø)
src/d3/d3Renderer.js 93.28% <100%> (ø)
src/map.js 98.78% <100%> (ø)
src/gl/pointFeature.js 92.7% <0%> (+1.04%)
src/graphFeature.js 83.13% <0%> (+2.4%)
src/util/clustering.js 97.97% <0%> (+5.05%)
src/contourFeature.js 83.62% <0%> (+9.94%)
src/pointFeature.js 57.93% <0%> (+22.75%)
... and 1 more

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 155b1f4...a35aefc. Read the comment docs.

@manthey
Copy link
Contributor Author

manthey commented Mar 15, 2017

@aashish24 I'm sure some of these tests are still brittle, but I think this is ready for review.

Copy link
Member

@aashish24 aashish24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LRTM

@aashish24
Copy link
Member

+2

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.

3 participants