-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...latform-react-hybrid-test/src/test/java/com/vaadin/platform/react/test/FlowInHillaIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.vaadin.platform.react.test; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.openqa.selenium.By; | ||
import org.openqa.selenium.support.ui.ExpectedConditions; | ||
|
||
import com.vaadin.flow.component.sidenav.testbench.SideNavItemElement; | ||
|
||
public class FlowInHillaIT extends AbstractPlatformTest{ | ||
|
||
@Test | ||
public void flowViewInHillaLayout() { | ||
Assert.assertNotNull(findElement(By.id("hilla"))); | ||
|
||
// Navigate to Flow view | ||
$(SideNavItemElement.class).withCaption("Flow in hilla").first().click(); | ||
|
||
waitUntil(ExpectedConditions.presenceOfElementLocated(By.id("flow-hilla"))); | ||
|
||
Assert.assertNull("Showing hilla placeholder even though Flow should be shown", findElement(By.id("placeholder"))); | ||
|
||
// navigate away from Flow view | ||
$(SideNavItemElement.class).withCaption("React Components").first().click(); | ||
} | ||
|
||
@Override | ||
protected String getTestPath() { | ||
return "/hilla"; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...latform-react-hybrid-test/src/test/java/com/vaadin/platform/react/test/HillaInFlowIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.vaadin.platform.react.test; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.openqa.selenium.By; | ||
import org.openqa.selenium.support.ui.ExpectedConditions; | ||
|
||
import com.vaadin.flow.component.sidenav.testbench.SideNavItemElement; | ||
|
||
public class HillaInFlowIT extends AbstractPlatformTest{ | ||
|
||
@Test | ||
public void hillaViewInFlowLayout() { | ||
waitUntil(ExpectedConditions.presenceOfElementLocated(By.id("flow-main"))); | ||
|
||
// Navigate to Flow view | ||
$(SideNavItemElement.class).withCaption("Flow in hilla").first().click(); | ||
|
||
waitUntil(ExpectedConditions.presenceOfElementLocated(By.id("flow-hilla"))); | ||
|
||
Assert.assertNull("Showing hilla placeholder even though Flow should be shown", findElement(By.id("placeholder"))); | ||
|
||
// navigate away from Flow view | ||
$(SideNavItemElement.class).withCaption("React Components").first().click(); | ||
} | ||
|
||
@Override | ||
protected String getTestPath() { | ||
return "/flow"; | ||
} | ||
} |