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 tests ideogram #182

Merged
merged 19 commits into from
Feb 20, 2019
Merged

Add tests ideogram #182

merged 19 commits into from
Feb 20, 2019

Conversation

Bachibouzouk
Copy link
Contributor

@Bachibouzouk Bachibouzouk commented Feb 15, 2019

Fullfills part of #103

Props covered by the test

  • ancestors
  • annotationHeight
  • annotationTracks
  • annotations
  • annotationsColor
  • annotationsData (this is a read-only prop)
  • annotationsLayout
  • annotationsPath
  • assembly
  • barWidth
  • brush
  • brushData (this is a read-only prop)
  • chrHeight
  • chrMargin
  • chrWidth
  • chromosomes
  • container
  • dataDir
  • filterable
  • fullChromosomeLabels
  • heatmaps
  • histogramScaling
  • homology
  • localOrganism
  • organism
  • orientation
  • perspective
  • ploidy
  • ploidyDesc
  • rangeSet
  • resolution
  • rotatable
  • rotated
  • rows
  • sex
  • showAnnotTooltip
  • showBandLabels
  • showChromosomeLabels
  • showFullyBanded
  • showNonNuclearChromosomes

About

  • This is a new component
  • I am adding tests to an existing component
  • I am closing an issue

Description of changes

Before merging

@Bachibouzouk Bachibouzouk self-assigned this Feb 15, 2019
@Bachibouzouk Bachibouzouk added this to In progress in Sprint 3 via automation Feb 15, 2019
@mtwichan mtwichan temporarily deployed to dash-bio-test-pr-182 February 15, 2019 22:24 Inactive
@mtwichan mtwichan temporarily deployed to dash-bio-test-pr-182 February 15, 2019 22:29 Inactive
src/lib/components/Ideogram.react.js Outdated Show resolved Hide resolved
tests/test_ideogram.py Outdated Show resolved Hide resolved
tests/test_ideogram.py Outdated Show resolved Hide resolved
tests/test_ideogram.py Outdated Show resolved Hide resolved
tests/test_ideogram.py Outdated Show resolved Hide resolved
@@ -500,6 +499,18 @@ Ideogram.propTypes = {
}),
}),

/**
* Use perspective: 'comparative' to enable annotations between two chromosomes,
* either within the same organism or different organisms. Used for homology.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* either within the same organism or different organisms. Used for homology.
* either within the same organism or from different organisms. Used for homology.

'dash-bio/{}'.format(APP_NAME)


# below, write tests for initial conditions; they will most likely
Copy link
Contributor

@mkcor mkcor Feb 18, 2019

Choose a reason for hiding this comment

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

I would take out this boilerplate.

@mtwichan mtwichan temporarily deployed to dash-bio-test-pr-182 February 18, 2019 20:52 Inactive
# verify the existence of the brush
brush = selenium.find_elements_by_class_name('brush')
assert len(brush) == 1
# selection = selenium.find_elements_by_class_name('selection')[0]
Copy link
Contributor Author

@Bachibouzouk Bachibouzouk Feb 18, 2019

Choose a reason for hiding this comment

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

This test currently fails (issue #186), it has been commented out for the time being


brush = selenium.find_elements_by_class_name('brush')
assert len(brush) == 1
# verify that the selection of the brush was updated
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as above (see #186)

@mkcor
Copy link
Contributor

mkcor commented Feb 19, 2019

Let's merge #187 into master first, then update this branch and fix merge conflicts.

Remove deprecated selenium uses
@mtwichan mtwichan temporarily deployed to dash-bio-test-pr-182 February 19, 2019 15:52 Inactive
@mtwichan mtwichan temporarily deployed to dash-bio-test-pr-182 February 19, 2019 21:36 Inactive
@mtwichan mtwichan temporarily deployed to dash-bio-test-pr-182 February 19, 2019 22:41 Inactive
@Bachibouzouk Bachibouzouk changed the title Add tests ideogram [WIP] Add tests ideogram Feb 19, 2019
@Bachibouzouk Bachibouzouk added the WIP Work In Progress label Feb 19, 2019
@mtwichan mtwichan temporarily deployed to dash-bio-test-pr-182 February 20, 2019 16:59 Inactive
@mtwichan mtwichan temporarily deployed to dash-bio-test-pr-182 February 20, 2019 17:21 Inactive
@mtwichan mtwichan temporarily deployed to dash-bio-test-pr-182 February 20, 2019 21:39 Inactive
src/lib/components/Ideogram.react.js Outdated Show resolved Hide resolved

/**
* Use this prop in a dash callback to return annotationData when hovered.
* It is read-only, i.e. it cannot be used with dash.dependencies.Output but only with
Copy link
Contributor

Choose a reason for hiding this comment

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

Good idea specifying this -- it will avoid a lot of confusion down the line! :)

Co-Authored-By: Bachibouzouk <pierre-francois.duc@netplus.ch>
Sprint 3 automation moved this from In progress to Needs merge Feb 20, 2019
@Bachibouzouk Bachibouzouk merged commit 86246a2 into master Feb 20, 2019
Sprint 3 automation moved this from Needs merge to Done Feb 20, 2019
@Bachibouzouk Bachibouzouk deleted the add_tests_ideogram branch February 20, 2019 22:12
@Bachibouzouk Bachibouzouk removed the WIP Work In Progress label Feb 25, 2019
@Bachibouzouk Bachibouzouk changed the title [WIP] Add tests ideogram Add tests ideogram Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Sprint 3
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants