@@ -148,13 +148,7 @@ test.describe('Testing constraints', () => {
148148 |> line(end = [74.36, 130.4], tag = $seg01)
149149 |> line(end = [78.92, -120.11])
150150 |> angledLine(angle = segAng(seg01), length = 78.33)
151- |> line(end = [51.19, 48.97])
152- part002 = startSketchOn(XZ)
153- |> startProfile(at = [299.05, 231.45])
154- |> xLine(length = -425.34, tag = $seg_what)
155- |> yLine(length = -264.06)
156- |> xLine(length = segLen(seg_what))
157- |> line(endAbsolute = [profileStartX(%), profileStartY(%)])`
151+ |> line(end = [51.19, 48.97])`
158152 )
159153 } )
160154 const u = await getUtils ( page )
@@ -265,13 +259,7 @@ test.describe('Testing constraints', () => {
265259 |> line(end = [74.36, 130.4])
266260 |> line(end = [78.92, -120.11])
267261 |> line(end = [9.16, 77.79])
268- |> line(end = [51.19, 48.97])
269- part002 = startSketchOn(XZ)
270- |> startProfile(at = [299.05, 231.45])
271- |> xLine(length = -425.34, tag = $seg_what)
272- |> yLine(length = -264.06)
273- |> xLine(length = segLen(seg_what))
274- |> line(endAbsolute = [profileStartX(%), profileStartY(%)])`
262+ |> line(end = [51.19, 48.97])`
275263 )
276264 } )
277265 const u = await getUtils ( page )
@@ -574,13 +562,13 @@ profile001 = startProfile(sketch001, at = [-70, -10])
574562 testName : 'Angle - Add variable' ,
575563 addVariable : true ,
576564 constraint : 'angle' ,
577- value : 'angle001, 78.33 ' ,
565+ value : 'angle001, 102.05 ' ,
578566 } ,
579567 {
580568 testName : 'Angle - No variable' ,
581569 addVariable : false ,
582570 constraint : 'angle' ,
583- value : '83deg, 78.33 ' ,
571+ value : '73deg, 102.05 ' ,
584572 } ,
585573 ] as const
586574 for ( const { testName, addVariable, value, constraint } of cases ) {
@@ -594,8 +582,8 @@ profile001 = startProfile(sketch001, at = [-70, -10])
594582 |> startProfile(at = [-7.54, -26.74])
595583 |> line(end = [74.36, 130.4])
596584 |> line(end = [78.92, -120.11])
597- |> line(end = [9 .16, 77 .79])
598- |> line(end = [51 .19, 48 .97])
585+ |> line(end = [29 .16, 97 .79])
586+ |> line(end = [81 .19, 68 .97])
599587 part002 = startSketchOn(XZ)
600588 |> startProfile(at = [299.05, 231.45])
601589 |> xLine(length = -425.34, tag = $seg_what)
@@ -650,13 +638,13 @@ profile001 = startProfile(sketch001, at = [-70, -10])
650638 testName : 'Length - Add variable' ,
651639 addVariable : true ,
652640 constraint : 'length' ,
653- value : '83deg , length001' ,
641+ value : '73deg , length001' ,
654642 } ,
655643 {
656644 testName : 'Length - No variable' ,
657645 addVariable : false ,
658646 constraint : 'length' ,
659- value : '83deg, 78.33 ' ,
647+ value : '73deg, 102.05 ' ,
660648 } ,
661649 ] as const
662650 for ( const { testName, addVariable, value, constraint } of cases ) {
@@ -684,8 +672,8 @@ part001 = startSketchOn(XZ)
684672 |> startProfile(at = [-7.54, -26.74])
685673 |> line(end = [74.36, 130.4])
686674 |> line(end = [78.92, -120.11])
687- |> line(end = [9 .16, 77 .79])
688- |> line(end = [51 .19, 48 .97])
675+ |> line(end = [29 .16, 97 .79])
676+ |> line(end = [81 .19, 68 .97])
689677part002 = startSketchOn(XZ)
690678 |> startProfile(at = [299.05, 231.45])
691679 |> xLine(length = -425.34, tag = $seg_what)
@@ -720,7 +708,7 @@ part002 = startSketchOn(XZ)
720708 await cmdBarKclVariableNameInput . press ( 'Backspace' )
721709 } )
722710 }
723- await expect ( cmdBarKclInput ) . toHaveText ( '78.33 ' )
711+ await expect ( cmdBarKclInput ) . toHaveText ( '102.05 ' )
724712 await page . waitForTimeout ( 500 )
725713 const [ ang , len ] = value . split ( ', ' )
726714 await cmdBar . continue ( )
@@ -741,15 +729,15 @@ part002 = startSketchOn(XZ)
741729 constraintName : 'Vertical' ,
742730 codeAfter : [
743731 `|> yLine(length = 130.4)` ,
744- `|> yLine(length = 77 .79)` ,
745- `|> yLine(length = 48 .97)` ,
732+ `|> yLine(length = 97 .79)` ,
733+ `|> yLine(length = 78 .97)` ,
746734 ] ,
747735 } ,
748736 {
749737 codeAfter : [
750738 `|> xLine(length = 74.36)` ,
751- `|> xLine(length = 9 .16)` ,
752- `|> xLine(length = 51 .19)` ,
739+ `|> xLine(length = 29 .16)` ,
740+ `|> xLine(length = 81 .19)` ,
753741 ] ,
754742 constraintName : 'Horizontal' ,
755743 } ,
@@ -765,8 +753,8 @@ part002 = startSketchOn(XZ)
765753 |> startProfile(at = [-7.54, -26.74])
766754 |> line(end = [74.36, 130.4])
767755 |> line(end = [78.92, -120.11])
768- |> line(end = [9 .16, 77 .79])
769- |> line(end = [51 .19, 48 .97])
756+ |> line(end = [29 .16, 97 .79])
757+ |> line(end = [81 .19, 78 .97])
770758 part002 = startSketchOn(XZ)
771759 |> startProfile(at = [299.05, 231.45])
772760 |> xLine(length = -425.34, tag = $seg_what)
@@ -834,19 +822,19 @@ part002 = startSketchOn(XZ)
834822 test . describe ( 'Two segment - no modal constraints' , ( ) => {
835823 const cases = [
836824 {
837- codeAfter : `|> angledLine(angle = 83deg , length = segLen(seg01))` ,
825+ codeAfter : `|> angledLine(angle = 73deg , length = segLen(seg01))` ,
838826 constraintName : 'Equal Length' ,
839827 } ,
840828 {
841- codeAfter : `|> angledLine(angle = segAng(seg01), length = 78.33 )` ,
829+ codeAfter : `|> angledLine(angle = segAng(seg01), length = 102.05 )` ,
842830 constraintName : 'Parallel' ,
843831 } ,
844832 {
845- codeAfter : `|> line(endAbsolute = [segEndX(seg01), 61 .34])` ,
833+ codeAfter : `|> line(endAbsolute = [segEndX(seg01), 81 .34])` ,
846834 constraintName : 'Vertically Align' ,
847835 } ,
848836 {
849- codeAfter : `|> line(endAbsolute = [154 .9, segEndY(seg01)])` ,
837+ codeAfter : `|> line(endAbsolute = [174 .9, segEndY(seg01)])` ,
850838 constraintName : 'Horizontally Align' ,
851839 } ,
852840 ] as const
@@ -861,7 +849,7 @@ part002 = startSketchOn(XZ)
861849 |> startProfile(at = [-7.54, -26.74])
862850 |> line(end = [74.36, 130.4])
863851 |> line(end = [78.92, -120.11])
864- |> line(end = [9 .16, 77 .79])
852+ |> line(end = [29 .16, 97 .79])
865853 part002 = startSketchOn(XZ)
866854 |> startProfile(at = [299.05, 231.45])
867855 |> xLine(length = -425.34, tag = $seg_what)
@@ -923,7 +911,7 @@ part002 = startSketchOn(XZ)
923911 const cases = [
924912 {
925913 codeAfter : / \| > l i n e \( e n d A b s o l u t e = \[ \d + ( \. \d + ) ? , t u r n s : : Z E R O / ,
926- axisClick : { x : 0.75 , y : 0.5 } ,
914+ axisClick : { x : 0.25 , y : 0.5 } ,
927915 constraintName : 'Snap To X' ,
928916 } ,
929917 {
0 commit comments