Skip to content

Commit

Permalink
test: refactor AppLayout IT to use AbstractComponentIT (#6985)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Dec 23, 2024
1 parent 2221a06 commit 43075a9
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@

import com.vaadin.flow.component.applayout.testbench.AppLayoutElement;
import com.vaadin.flow.component.applayout.testbench.DrawerToggleElement;
import com.vaadin.flow.testutil.TestPath;
import com.vaadin.testbench.TestBenchElement;
import com.vaadin.tests.AbstractParallelTest;
import com.vaadin.tests.AbstractComponentIT;

public class AppLayoutIT extends AbstractParallelTest {
@TestPath("vaadin-app-layout")
public class AppLayoutIT extends AbstractComponentIT {

@Before
public void init() {
String url = getBaseURL().replace(super.getBaseURL(),
super.getBaseURL() + "/vaadin-app-layout");
getDriver().get(url);
open();
}

@Test
Expand Down Expand Up @@ -66,8 +66,7 @@ public void properties() {

@Test
public void navigateToNotFound() {
String url = getBaseURL().replace(super.getBaseURL(),
super.getBaseURL() + "/vaadin-app-layout") + "/nonexistingpage";
String url = getRootURL() + getTestPath() + "/nonexistingpage";
getDriver().get(url);
Assert.assertTrue($(AppLayoutElement.class).waitForFirst().getContent()
.getText().contains("Could not navigate to"));
Expand Down

0 comments on commit 43075a9

Please sign in to comment.