From ca60a424f779546a2d80667b3ccda96ff678d15f Mon Sep 17 00:00:00 2001 From: Hiromu Hota Date: Thu, 7 Jun 2018 15:07:33 -0700 Subject: [PATCH] Adopt iframe src to 8.1 --- .../src/test/java/org/pentaho/di/ui/spoon/WebSpoonTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/src/test/java/org/pentaho/di/ui/spoon/WebSpoonTest.java b/integration/src/test/java/org/pentaho/di/ui/spoon/WebSpoonTest.java index b2a201ee0f2f..5347fb6da1d3 100644 --- a/integration/src/test/java/org/pentaho/di/ui/spoon/WebSpoonTest.java +++ b/integration/src/test/java/org/pentaho/di/ui/spoon/WebSpoonTest.java @@ -183,9 +183,9 @@ public void testConnect() { // if any repository is already registered if ( driver.findElements( By.xpath( "//div[text() = 'Repository Manager...']" ) ).size() == 1 ) { clickElement( "//div[text() = 'Repository Manager...']" ); - driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='/spoon/osgi/repositories/web/index.html#repository-manager']") ) ); + driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='/spoon/osgi/repositories-plugin-core/8.1.0.0-365/index.html']") ) ); } else { - driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='/spoon/osgi/repositories/web/index.html']") ) ); + driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='/spoon/osgi/repositories-plugin-core/8.1.0.0-365/index.html#/add']") ) ); } assertEquals( 1, driver.findElements( By.xpath( "//button[@id = 'btnClose']" ) ).size() ); } @@ -197,7 +197,7 @@ public void testConnect() { public void testMarketplace() { clickElement( "//div[text() = 'Tools']" ); clickElement( "//div[text() = 'Marketplace']" ); - driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='osgi/pentaho-marketplace/8.0.0.0-28/main.html']") ) ); + driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[@src='osgi/pentaho-marketplace/8.1.0.0-365/main.html']") ) ); assertEquals( 1, driver.findElements( By.xpath( "//div[text() = ' Available ']" ) ).size() ); }