Compare commits

...

1 Commits

Author SHA1 Message Date
0bc0ed45b9 Run file tests on Windows to cover path differences 2025-05-06 21:26:42 -04:00
2 changed files with 174 additions and 177 deletions

View File

@ -2,7 +2,7 @@ import path from 'path'
import { expect, test } from '@e2e/playwright/zoo-test'
import * as fsp from 'fs/promises'
test.describe('Import UI tests', () => {
test.describe('Import UI tests', { tag: ['@windows'] }, () => {
test('shows toast when trying to sketch on imported face, and hovering over imported geometry should NOT highlight any code', async ({
context,
page,

View File

@ -40,11 +40,11 @@ async function insertPartIntoAssembly(
}
// test file is for testing point an click code gen functionality that's assemblies related
test.describe('Point-and-click assemblies tests', () => {
test(
`Insert kcl parts into assembly as whole module import`,
{ tag: ['@electron'] },
async ({
test.describe(
'Point-and-click assemblies tests',
{ tag: ['@electron', '@windows'] },
() => {
test(`Insert kcl parts into assembly as whole module import`, async ({
context,
page,
homePage,
@ -168,13 +168,9 @@ test.describe('Point-and-click assemblies tests', () => {
page.getByText('This file is already imported')
).toBeVisible()
})
}
)
})
test(
`Can still translate, rotate, and delete inserted parts even with non standard code`,
{ tag: ['@electron'] },
async ({
test(`Can still translate, rotate, and delete inserted parts even with non standard code`, async ({
context,
page,
homePage,
@ -364,13 +360,9 @@ test.describe('Point-and-click assemblies tests', () => {
)
await toolbar.closePane('code')
})
}
)
})
test(
`Insert the bracket part into an assembly and transform it`,
{ tag: ['@electron'] },
async ({
test(`Insert the bracket part into an assembly and transform it`, async ({
context,
page,
homePage,
@ -555,13 +547,11 @@ test.describe('Point-and-click assemblies tests', () => {
await toolbar.closePane('code')
await scene.expectPixelColorNotToBe(partColor, midPoint, tolerance)
})
}
)
})
// TODO: bring back in https://github.com/KittyCAD/modeling-app/issues/6570
test.fixme(
`Insert foreign parts into assembly as whole module import`,
{ tag: ['@electron'] },
async ({
context,
page,
@ -610,7 +600,13 @@ test.describe('Point-and-click assemblies tests', () => {
})
await test.step('Insert step part as module', async () => {
await insertPartIntoAssembly('cube.step', 'cube', toolbar, cmdBar, page)
await insertPartIntoAssembly(
'cube.step',
'cube',
toolbar,
cmdBar,
page
)
await toolbar.openPane('code')
await editor.expectEditor.toContain(
`
@ -710,10 +706,15 @@ test.describe('Point-and-click assemblies tests', () => {
}
)
test(
'Assembly gets reexecuted when imported models are updated externally',
{ tag: ['@electron'] },
async ({ context, page, homePage, scene, toolbar, cmdBar, tronApp }) => {
test('Assembly gets reexecuted when imported models are updated externally', async ({
context,
page,
homePage,
scene,
toolbar,
cmdBar,
tronApp,
}) => {
if (!tronApp) {
fail()
}
@ -797,13 +798,9 @@ foreign
await scene.expectPixelColor(partColor, midPoint, tolerance)
await scene.expectPixelColor(bgColor, washerPoint, tolerance)
})
}
)
})
test(
`Point-and-click clone`,
{ tag: ['@electron'] },
async ({
test(`Point-and-click clone`, async ({
context,
page,
homePage,
@ -1029,6 +1026,6 @@ washer
{ shouldNormalise: true }
)
})
})
}
)
})