diff --git a/e2e/playwright/testing-constraints.spec.ts b/e2e/playwright/testing-constraints.spec.ts index 85ffbdbd3..50ec341f4 100644 --- a/e2e/playwright/testing-constraints.spec.ts +++ b/e2e/playwright/testing-constraints.spec.ts @@ -121,7 +121,9 @@ test.describe('Testing constraints', () => { await page.getByText('line([39.13, 68.63], %)').click() await pollEditorLinesSelectedLength(page, 1) const activeLinesContent = await page.locator('.cm-activeLine').all() - await expect(activeLinesContent[0]).toHaveText('|> line(end = [39.13, 68.63])') + await expect(activeLinesContent[0]).toHaveText( + '|> line(end = [39.13, 68.63])' + ) // checking the count of the overlays is a good proxy check that the client sketch scene is in a good state await expect(page.getByTestId('segment-overlay')).toHaveCount(4) diff --git a/src/lang/std/sketch.test.ts b/src/lang/std/sketch.test.ts index 04ab9ec6b..f8c9bd805 100644 --- a/src/lang/std/sketch.test.ts +++ b/src/lang/std/sketch.test.ts @@ -410,7 +410,7 @@ describe('testing getConstraintInfo', () => { ], ], [ - 'lineTo', + 'line(endAbsolute', [ { type: 'xAbsolute', @@ -419,7 +419,7 @@ describe('testing getConstraintInfo', () => { sourceRange: [expect.any(Number), expect.any(Number), true], argPosition: { type: 'arrayItem', index: 0 }, pathToNode: expect.any(Array), - stdLibFnName: 'lineTo', + stdLibFnName: 'line', }, { type: 'yAbsolute', @@ -428,7 +428,7 @@ describe('testing getConstraintInfo', () => { sourceRange: [expect.any(Number), expect.any(Number), true], argPosition: { type: 'arrayItem', index: 1 }, pathToNode: expect.any(Array), - stdLibFnName: 'lineTo', + stdLibFnName: 'line', }, ], ], @@ -881,7 +881,8 @@ describe('testing getConstraintInfo', () => { offset = 0 + 0 }, %) |> tangentialArcTo([3.14 + 0, 13.14 + 0], %)` - test.only.each([ + const ast = assertParse(code) + test.each([ [ 'line', [