Add screenshots
@ -8,9 +8,7 @@ import edu.kit.typicalc.model.type.TypeAbstraction;
|
||||
import edu.kit.typicalc.util.Result;
|
||||
|
||||
import java.nio.channels.IllegalSelectorException;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Deque;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
@ -83,7 +83,7 @@ public class ScreenshotIT extends AbstractIT {
|
||||
inputBar.typeInfer();
|
||||
TestBenchCommandExecutor executor = getCommandExecutor();
|
||||
executor.waitForVaadin();
|
||||
|
||||
|
||||
assertTrue("Screenshot comparison for 'letView' failed, see "
|
||||
+ Parameters.getScreenshotErrorDirectory()
|
||||
+ " for error images",
|
||||
@ -193,6 +193,8 @@ public class ScreenshotIT extends AbstractIT {
|
||||
|
||||
@Test
|
||||
public void testScenario1() throws IOException {
|
||||
TestBenchCommandExecutor executor = getCommandExecutor();
|
||||
|
||||
InputBarElement inputBar = $(InputBarElement.class).first();
|
||||
String term = "λx. f x";
|
||||
inputBar.setCurrentValue(term);
|
||||
@ -202,23 +204,31 @@ public class ScreenshotIT extends AbstractIT {
|
||||
inputBar.typeInfer();
|
||||
|
||||
ControlPanelElement controlPanelElement = $(ControlPanelElement.class).first();
|
||||
|
||||
executor.waitForVaadin();
|
||||
|
||||
assertTrue(testBench().compareScreen("testScenario1_step0"));
|
||||
controlPanelElement.nextStep();
|
||||
executor.waitForVaadin();
|
||||
assertTrue(testBench().compareScreen("testScenario1_step1"));
|
||||
controlPanelElement.nextStep();
|
||||
executor.waitForVaadin();
|
||||
assertTrue(testBench().compareScreen("testScenario1_step2"));
|
||||
controlPanelElement.nextStep();
|
||||
executor.waitForVaadin();
|
||||
assertTrue(testBench().compareScreen("testScenario1_step3"));
|
||||
controlPanelElement.nextStep();
|
||||
executor.waitForVaadin();
|
||||
assertTrue(testBench().compareScreen("testScenario1_step4"));
|
||||
controlPanelElement.previousStep();
|
||||
executor.waitForVaadin();
|
||||
assertTrue(testBench().compareScreen("testScenario1_step3"));
|
||||
controlPanelElement.previousStep();
|
||||
assertTrue(testBench().compareScreen("testScenario1_step2"));
|
||||
controlPanelElement.firstStep();
|
||||
executor.waitForVaadin();
|
||||
assertTrue(testBench().compareScreen("testScenario1_step0"));
|
||||
controlPanelElement.lastStep();
|
||||
executor.waitForVaadin();
|
||||
assertTrue(testBench().compareScreen("testScenario1_step4gi"));
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 88 KiB |
BIN
src/test/resources/screenshots/letView_windows_firefox_86.png
Normal file
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 42 KiB |