@Test
 public void adiposeFactorTooltip() {
   assertThat(subject.getFactorTooltipContent(1, 0, 0), is("organism part"));
   assertThat(subject.getFactorTooltipContent(1, 0, 1), is("adipose tissue"));
   assertThat(subject.getFactorTooltipContent(1, 1, 0), is("age"));
   assertThat(subject.getFactorTooltipContent(1, 1, 1), is("73 year"));
   assertThat(subject.getFactorTooltipContent(1, 4, 0), is("sex"));
   assertThat(subject.getFactorTooltipContent(1, 4, 1), is("female"));
 }
Ejemplo n.º 2
0
  // This will fail with PhantomJS
  @Test
  @Ignore // TODO: we need to fix this test for matching the correct id:geneQuery in selenium
  public void matchingGeneQueryTermsShouldBeHighlighted() throws InterruptedException {
    // given
    String tooltipContent = subject.getGenePropertyTooltipContent(0);

    // then
    assertThat(tooltipContent, containsString("ACTL7A"));
    List<String> highlightedTerms = subject.getGenePropertyTooltipHighlightedTerms(0);
    assertThat(highlightedTerms, hasItems("protein", "Actin-related protein"));
  }
 @Test
 public void factorTooltipHeader() {
   assertThat(subject.getFactorTooltipHeader(0), is("Property"));
   assertThat(subject.getFactorTooltipHeader(1), is("Value (N=1)"));
 }
 public void getStartingPage() {
   subject = new HeatmapTablePage(driver, EXPERIMENT_ACCESSION);
   subject.get();
 }