integration/src/test/java/org/pentaho/di/ui/spoon/WebSpoonTest.java
@Test
  public void testMarketplace() {
    clickElement( "//div[text() = 'Tools']" );
    clickElement( "//div[text() = 'Marketplace']" );
    driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='osgi/@pentaho/marketplace@9.0.0.0-423/main.html']") ) );
    assertEquals( 1, driver.findElements( By.xpath( "//div[text() = ' Available ']" ) ).size() );
    assertEquals( 0, driver.findElements( By.xpath( "//div[contains(text(), 'Error getting plugins from server')]" ) ).size() );
  }
/**
   * Test if the marketplace can be loaded.
   */
Test if the marketplace can be loaded.
Test if the marketplace can be loaded .
@Test
  public void testMarketplace() {
    clickElement( "//div[text() = 'Tools']" );
    clickElement( "//div[text() = 'Marketplace']" );
    driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='osgi/@pentaho/marketplace@9.0.0.0-423/main.html']") ) );
    assertEquals( 1, driver.findElements( By.xpath( "//div[text() = ' Available ']" ) ).size() );
    assertEquals( 0, driver.findElements( By.xpath( "//div[contains(text(), 'Error getting plugins from server')]" ) ).size() );
  }
@ Test public void testMarketplace ( ) { clickElement ( "//div[text() = 'Tools']" ) ; clickElement ( "//div[text() = 'Marketplace']" ) ; driver . switchTo ( ) . frame ( driver . findElement ( By . xpath ( ".//iframe[@src='osgi/@pentaho/marketplace@9.0.0.0-423/main.html']" ) ) ) ; assertEquals ( 1 , driver . findElements ( By . xpath ( "//div[text() = ' Available ']" ) ) . size ( ) ) ; assertEquals ( 0 , driver . findElements ( By . xpath ( "//div[contains(text(), 'Error getting plugins from server')]" ) ) . size ( ) ) ; }
Test if the marketplace can be loaded.
Test if the marketplace can be loaded .