Add screenshots
@ -8,9 +8,7 @@ import edu.kit.typicalc.model.type.TypeAbstraction;
|
|||||||
import edu.kit.typicalc.util.Result;
|
import edu.kit.typicalc.util.Result;
|
||||||
|
|
||||||
import java.nio.channels.IllegalSelectorException;
|
import java.nio.channels.IllegalSelectorException;
|
||||||
import java.util.ArrayDeque;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Deque;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
@ -193,6 +193,8 @@ public class ScreenshotIT extends AbstractIT {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testScenario1() throws IOException {
|
public void testScenario1() throws IOException {
|
||||||
|
TestBenchCommandExecutor executor = getCommandExecutor();
|
||||||
|
|
||||||
InputBarElement inputBar = $(InputBarElement.class).first();
|
InputBarElement inputBar = $(InputBarElement.class).first();
|
||||||
String term = "λx. f x";
|
String term = "λx. f x";
|
||||||
inputBar.setCurrentValue(term);
|
inputBar.setCurrentValue(term);
|
||||||
@ -202,23 +204,31 @@ public class ScreenshotIT extends AbstractIT {
|
|||||||
inputBar.typeInfer();
|
inputBar.typeInfer();
|
||||||
|
|
||||||
ControlPanelElement controlPanelElement = $(ControlPanelElement.class).first();
|
ControlPanelElement controlPanelElement = $(ControlPanelElement.class).first();
|
||||||
|
executor.waitForVaadin();
|
||||||
|
|
||||||
assertTrue(testBench().compareScreen("testScenario1_step0"));
|
assertTrue(testBench().compareScreen("testScenario1_step0"));
|
||||||
controlPanelElement.nextStep();
|
controlPanelElement.nextStep();
|
||||||
|
executor.waitForVaadin();
|
||||||
assertTrue(testBench().compareScreen("testScenario1_step1"));
|
assertTrue(testBench().compareScreen("testScenario1_step1"));
|
||||||
controlPanelElement.nextStep();
|
controlPanelElement.nextStep();
|
||||||
|
executor.waitForVaadin();
|
||||||
assertTrue(testBench().compareScreen("testScenario1_step2"));
|
assertTrue(testBench().compareScreen("testScenario1_step2"));
|
||||||
controlPanelElement.nextStep();
|
controlPanelElement.nextStep();
|
||||||
|
executor.waitForVaadin();
|
||||||
assertTrue(testBench().compareScreen("testScenario1_step3"));
|
assertTrue(testBench().compareScreen("testScenario1_step3"));
|
||||||
controlPanelElement.nextStep();
|
controlPanelElement.nextStep();
|
||||||
|
executor.waitForVaadin();
|
||||||
assertTrue(testBench().compareScreen("testScenario1_step4"));
|
assertTrue(testBench().compareScreen("testScenario1_step4"));
|
||||||
controlPanelElement.previousStep();
|
controlPanelElement.previousStep();
|
||||||
|
executor.waitForVaadin();
|
||||||
assertTrue(testBench().compareScreen("testScenario1_step3"));
|
assertTrue(testBench().compareScreen("testScenario1_step3"));
|
||||||
controlPanelElement.previousStep();
|
controlPanelElement.previousStep();
|
||||||
assertTrue(testBench().compareScreen("testScenario1_step2"));
|
assertTrue(testBench().compareScreen("testScenario1_step2"));
|
||||||
controlPanelElement.firstStep();
|
controlPanelElement.firstStep();
|
||||||
|
executor.waitForVaadin();
|
||||||
assertTrue(testBench().compareScreen("testScenario1_step0"));
|
assertTrue(testBench().compareScreen("testScenario1_step0"));
|
||||||
controlPanelElement.lastStep();
|
controlPanelElement.lastStep();
|
||||||
|
executor.waitForVaadin();
|
||||||
assertTrue(testBench().compareScreen("testScenario1_step4gi"));
|
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 |