Smoke tests (#604)

smoke tests
This commit is contained in:
Charlotte Weaver
2019-02-27 15:46:58 -08:00
committed by GitHub
parent 6b33315cbe
commit 2bae696986
11 changed files with 555 additions and 10 deletions
@@ -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
+1
View File
@@ -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}`);
+1
View File
@@ -40,6 +40,7 @@ class LeftSideBar extends React.Component {
}}
>
<p
data-testid="header"
style={{
position: "fixed",
top: globals.cellxgeneTitleTopPadding,