Remove .only and fix resulting tests
This commit is contained in:
committed by
Nick Cameron
parent
ce8aeab508
commit
f3a2922ba0
@ -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)
|
||||
|
@ -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',
|
||||
[
|
||||
|
Reference in New Issue
Block a user