Add screenshots

This commit is contained in:
Moritz Dieing 2021-03-03 19:56:05 +01:00
parent 592ace9882
commit 19a2921cbc
16 changed files with 12 additions and 4 deletions

View File

@ -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;

View File

@ -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"));
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB