Commit 2af65b8
authored
test(
* refactor(tests): Rename move test blocks to move start test blocks
Also remove an unnecessary round trip through JSON.stringify + JSON.parse.
* test(Mover): Introduce test blocks and suite for statement move tests
Introduce moveStatementTestBlocks and suite 'Statement move tests',
for testing movement of statement blocks.
Move the existing test for constrained movement following
unconstrained movement to the new suite.
* test(Mover): Test constrained move of simple stack block left/right
* refactor(tests): Refactor simple stack block move left/right
Introduce a new helper function, testMove, that encapsulates
the work needed to test moving a block through a constrained
move, checking candidate connections and final position.
Use this helper to reimplement the move left/right test as
two separate tests.
* test(Mover): Test constrained move of simple stack block up/down
* docs(tests): Improve documentation of getFocusedNeighbourInfo
* test(Mover): Also check index of candidateConnection.local
Modify getConnectionCandidate to also return the index of
candidateConnection.local in the list of connections returned
from block.getConnections_(true), so we can check wich connection
on the moving block is being used to connect.
For the simple mover case this is not very interesting (it's
normally index 0, for the previous connection, occasionally
index 1 if the moving block will be the new top block in a stack)
but this will be more important for tests involving moving more
complexly-shaped blocks.
* chore(tests): Add block with statment inputs to statement test blocks
Add a new, E-shaped block with ID complex_mover to
moveStatementTestBlocks, and update expected test results for
statement move tests.
* test(Mover): Test constrained move of stack block with statement inputs
Note that this test verifies current behaviour which, due to
bug #702, does not conform to the desired behaviour. There are
TODOs to update tests to desired behaviour when bug is fixed.
* docs(tests): Correct copied commentMover): Add test for moving statement blocks (#704)1 parent 7df913d commit 2af65b8
File tree
4 files changed
+373
-21
lines changed- test
- webdriverio/test
4 files changed
+373
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
574 | 582 | | |
575 | 583 | | |
576 | 584 | | |
| |||
862 | 870 | | |
863 | 871 | | |
864 | 872 | | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
865 | 979 | | |
866 | 980 | | |
867 | 981 | | |
| |||
985 | 1099 | | |
986 | 1100 | | |
987 | 1101 | | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
993 | 1108 | | |
994 | 1109 | | |
995 | | - | |
996 | | - | |
997 | 1110 | | |
998 | 1111 | | |
999 | | - | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
1000 | 1117 | | |
1001 | 1118 | | |
0 commit comments