mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 03:58:11 +08:00
smoke-test centroids + graph overlay layer (#1189)
* add test labels * prettier + add clcik return to clickOn() * prettier + begin test * finish label counting test * add util to get coordinates of element * add test id to labels * add test to check overlay transform * remove logs * rename to match master
This commit is contained in:
@@ -62,6 +62,8 @@ class CentroidLabels extends PureComponent {
|
||||
key={key}
|
||||
className="centroid-label"
|
||||
transform={`translate(${value[0]}, ${value[1]})`}
|
||||
data-testclass="centroid-label"
|
||||
data-testid={`${key}-centroid-label`}
|
||||
>
|
||||
<text
|
||||
transform={inverseTransform}
|
||||
|
||||
@@ -366,6 +366,8 @@ class MenuBar extends React.Component {
|
||||
disabled={graphInteractionMode === "zoom"}
|
||||
>
|
||||
<Button
|
||||
type="button"
|
||||
data-testid="centroid-label-toggle"
|
||||
icon="property"
|
||||
onClick={this.handleCentroidChange}
|
||||
active={showCentroidLabels}
|
||||
|
||||
Reference in New Issue
Block a user