mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 23:28:12 +08:00
add diff exp test class
This commit is contained in:
@@ -100,6 +100,10 @@ class GeneSet extends React.Component {
|
|||||||
const { isOpen } = this.state;
|
const { isOpen } = this.state;
|
||||||
const genesetNameLengthVisible = 150; /* this magic number determines how much of a long geneset name we see */
|
const genesetNameLengthVisible = 150; /* this magic number determines how much of a long geneset name we see */
|
||||||
const genesetIsEmpty = setGenes.length === 0;
|
const genesetIsEmpty = setGenes.length === 0;
|
||||||
|
let testClass = "geneset-expand";
|
||||||
|
|
||||||
|
if (setName.contains("pop1High")) testClass = "pop-1-geneset-expand";
|
||||||
|
else if (setName.contains("pop2High")) testClass = "pop-2-geneset-expand";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ marginBottom: 3 }}>
|
<div style={{ marginBottom: 3 }}>
|
||||||
@@ -113,7 +117,7 @@ class GeneSet extends React.Component {
|
|||||||
<span
|
<span
|
||||||
role="menuitem"
|
role="menuitem"
|
||||||
tabIndex="0"
|
tabIndex="0"
|
||||||
data-testclass="geneset-expand"
|
data-testclass={testClass}
|
||||||
data-testid={`${setName}:geneset-expand`}
|
data-testid={`${setName}:geneset-expand`}
|
||||||
onKeyPress={
|
onKeyPress={
|
||||||
/* TODO(colinmegill): #2101: click handler on span */ () => {}
|
/* TODO(colinmegill): #2101: click handler on span */ () => {}
|
||||||
|
|||||||
Reference in New Issue
Block a user