-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed charts tests to run with correct browser versions
vaadin/vaadin-board#61 Flow-component: vaadin-board
- Loading branch information
1 parent
fe782f0
commit 33a7b1c
Showing
20 changed files
with
108 additions
and
98 deletions.
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
Binary file added
BIN
+40.8 KB
integration-tests/reference-screenshots/initialBarChartUI_xp_chrome_58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+41.9 KB
integration-tests/reference-screenshots/initialPieChartUI_xp_chrome_58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+52.7 KB
integration-tests/reference-screenshots/initialTimeLineUI_xp_chrome_58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.8 KB
integration-tests/reference-screenshots/middleBarChartUI_xp_chrome_58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42 KB
integration-tests/reference-screenshots/middlePieChartUI_xp_chrome_58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+51.9 KB
integration-tests/reference-screenshots/middleTimeLineUI_xp_chrome_58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.3 KB
integration-tests/reference-screenshots/smallBarChartUI_xp_chrome_58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.2 KB
integration-tests/reference-screenshots/smallPieChartUI_xp_chrome_58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.6 KB
integration-tests/reference-screenshots/smallTimeLineUI_xp_chrome_58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
10 changes: 10 additions & 0 deletions
10
integration-tests/src/test/java/com/vaadin/addon/board/testbenchtests/BarIT.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,10 @@ | ||
package com.vaadin.addon.board.testbenchtests; | ||
|
||
import com.vaadin.addon.board.testUI.CompatChartComponents; | ||
|
||
public class BarIT extends CompatChartsUIIT{ | ||
@Override | ||
protected Class<?> getUIClass() { | ||
return CompatChartComponents.BarChartUI.class; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
integration-tests/src/test/java/com/vaadin/addon/board/testbenchtests/CompatChartsUIIT.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,35 @@ | ||
package com.vaadin.addon.board.testbenchtests; | ||
|
||
import java.util.function.Supplier; | ||
|
||
import org.junit.Test; | ||
import org.openqa.selenium.WebElement; | ||
|
||
import com.vaadin.addon.board.testUI.AbstractTestCompUI; | ||
import com.vaadin.testbench.elements.ButtonElement; | ||
|
||
/** | ||
* | ||
*/ | ||
public abstract class CompatChartsUIIT extends AbstractParallelTest { | ||
|
||
//Unfortunatelly we can not used | ||
//Parametrized Runner, because Testbench already uses Parallel Runner | ||
Supplier<WebElement> smallSizeButton = () -> $(ButtonElement.class) | ||
.id(AbstractTestCompUI.SMALL_SIZE_BTN); | ||
|
||
@Test | ||
public void testScreenshot() throws Exception { | ||
String chartType= getUIClass().getSimpleName(); | ||
compareScreen("initial"+chartType); | ||
|
||
$(ButtonElement.class).id(AbstractTestCompUI.MIDDLE_SIZE_BTN).click(); | ||
compareScreen("middle"+chartType); | ||
|
||
$(ButtonElement.class).id(AbstractTestCompUI.SMALL_SIZE_BTN).click(); | ||
compareScreen("small"+chartType); | ||
|
||
} | ||
|
||
|
||
} |
19 changes: 19 additions & 0 deletions
19
integration-tests/src/test/java/com/vaadin/addon/board/testbenchtests/GaugeIT.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,19 @@ | ||
package com.vaadin.addon.board.testbenchtests; | ||
|
||
import org.junit.Ignore; | ||
import org.junit.Test; | ||
|
||
import com.vaadin.addon.board.testUI.CompatChartComponents; | ||
|
||
public class GaugeIT extends CompatChartsUIIT{ | ||
@Override | ||
protected Class<?> getUIClass() { | ||
return CompatChartComponents.GaugeUI.class; | ||
} | ||
|
||
@Ignore | ||
@Test | ||
public void testScreenshot() throws Exception{ | ||
throw new Exception("Gauge chart is broken"); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
integration-tests/src/test/java/com/vaadin/addon/board/testbenchtests/PieIT.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,10 @@ | ||
package com.vaadin.addon.board.testbenchtests; | ||
|
||
import com.vaadin.addon.board.testUI.CompatChartComponents; | ||
|
||
public class PieIT extends CompatChartsUIIT{ | ||
@Override | ||
protected Class<?> getUIClass() { | ||
return CompatChartComponents.PieChartUI.class; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
integration-tests/src/test/java/com/vaadin/addon/board/testbenchtests/TimeLineIT.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,10 @@ | ||
package com.vaadin.addon.board.testbenchtests; | ||
|
||
import com.vaadin.addon.board.testUI.CompatChartComponents; | ||
|
||
public class TimeLineIT extends CompatChartsUIIT{ | ||
@Override | ||
protected Class<?> getUIClass() { | ||
return CompatChartComponents.TimeLineUI.class; | ||
} | ||
} |
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