mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-24 13:38:11 +08:00
@@ -237,6 +237,7 @@ class HistogramBrush extends React.Component {
|
||||
d3.select(svgRef)
|
||||
.append("g")
|
||||
.attr("class", "brush")
|
||||
.attr("data-testid", `${svgRef.id}-brush`)
|
||||
.call(
|
||||
d3
|
||||
.brushX()
|
||||
@@ -281,6 +282,8 @@ class HistogramBrush extends React.Component {
|
||||
return (
|
||||
<div
|
||||
id={`histogram_${field}`}
|
||||
data-testid={`histogram-${field}`}
|
||||
data-testclass={isDiffExp ? `histogram-diffexp` : ""}
|
||||
style={{
|
||||
padding: globals.leftSidebarSectionPadding,
|
||||
backgroundColor: zebra ? globals.lightestGrey : "white"
|
||||
|
||||
@@ -38,6 +38,7 @@ class CellSetButton extends React.Component {
|
||||
type="button"
|
||||
disabled={differential.diffExp}
|
||||
onClick={this.set.bind(this)}
|
||||
data-testid={`cellset-button-${eitherCellSetOneOrTwo}`}
|
||||
>
|
||||
{eitherCellSetOneOrTwo}
|
||||
{": "}
|
||||
|
||||
@@ -68,6 +68,7 @@ class Expression extends React.Component {
|
||||
style={{ marginTop: 10 }}
|
||||
disabled={!haveBothCellSets}
|
||||
intent="primary"
|
||||
data-testid="diffexp-button"
|
||||
loading={differential.loading}
|
||||
fill
|
||||
type="button"
|
||||
|
||||
@@ -236,6 +236,7 @@ class GeneExpression extends React.Component {
|
||||
/* this happens on 'enter' */
|
||||
this.handleClick(g);
|
||||
}}
|
||||
inputProps={{ "data-testid": "gene-search" }}
|
||||
inputValueRenderer={g => {
|
||||
return "";
|
||||
}}
|
||||
@@ -250,6 +251,7 @@ class GeneExpression extends React.Component {
|
||||
/>
|
||||
<Button
|
||||
className="bp3-button bp3-intent-primary"
|
||||
data-testid={"add-gene"}
|
||||
loading={userDefinedGenesLoading}
|
||||
>
|
||||
Add
|
||||
|
||||
@@ -477,6 +477,7 @@ class Graph extends React.Component {
|
||||
<canvas
|
||||
width={responsive.width - this.graphPaddingRight}
|
||||
height={responsive.height - this.graphPaddingTop}
|
||||
data-testid="layout"
|
||||
ref={canvas => {
|
||||
this.reglCanvas = canvas;
|
||||
}}
|
||||
|
||||
@@ -20,6 +20,7 @@ export default (
|
||||
const svg = d3
|
||||
.select("#graphAttachPoint")
|
||||
.append("svg")
|
||||
.attr("data-testid", "layout-overlay")
|
||||
.attr("width", responsive.width - graphPaddingRight)
|
||||
.attr("height", responsive.height)
|
||||
.attr("class", `${styles.graphSVG}`);
|
||||
|
||||
@@ -40,6 +40,7 @@ class LeftSideBar extends React.Component {
|
||||
}}
|
||||
>
|
||||
<p
|
||||
data-testid="header"
|
||||
style={{
|
||||
position: "fixed",
|
||||
top: globals.cellxgeneTitleTopPadding,
|
||||
|
||||
Reference in New Issue
Block a user