Skip to content

Commit

Permalink
test: Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- committed Nov 22, 2021
1 parent e43db2a commit 02f12d4
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
package com.vaadin.viteapp;

import com.vaadin.flow.component.html.testbench.ParagraphElement;
import com.vaadin.flow.testutil.ChromeBrowserTest;
import com.vaadin.flow.testutil.DevModeGizmoElement;
import com.vaadin.testbench.TestBenchElement;
import com.vaadin.viteapp.views.empty.MainView;

import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import io.github.bonigarcia.wdm.WebDriverManager;

public class BasicsIT extends ViteDevModeIT {

@Test
Expand All @@ -24,8 +19,6 @@ public void applicationStarts() {

@Test
public void imageFromThemeShown() {
getDriver().get(getRootURL());
waitForDevServer();
TestBenchElement img = $("img").id(MainView.PLANT);
waitUntil(driver -> {
String heightString = (String) executeScript(
Expand All @@ -38,8 +31,6 @@ public void imageFromThemeShown() {

@Test
public void applicationUsesVite() {
getDriver().get(getRootURL());
waitForDevServer();
TestBenchElement viteStatus = $(ParagraphElement.class).id("status");
Assert.assertEquals("Vite feature is true", viteStatus.getText());
}
Expand Down

0 comments on commit 02f12d4

Please sign in to comment.