Compare commits
1 Commits
remove-unu
...
test-windo
Author | SHA1 | Date | |
---|---|---|---|
0bc0ed45b9 |
@ -2,7 +2,7 @@ import path from 'path'
|
|||||||
import { expect, test } from '@e2e/playwright/zoo-test'
|
import { expect, test } from '@e2e/playwright/zoo-test'
|
||||||
import * as fsp from 'fs/promises'
|
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 ({
|
test('shows toast when trying to sketch on imported face, and hovering over imported geometry should NOT highlight any code', async ({
|
||||||
context,
|
context,
|
||||||
page,
|
page,
|
||||||
|
@ -40,11 +40,11 @@ async function insertPartIntoAssembly(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// test file is for testing point an click code gen functionality that's assemblies related
|
// test file is for testing point an click code gen functionality that's assemblies related
|
||||||
test.describe('Point-and-click assemblies tests', () => {
|
test.describe(
|
||||||
test(
|
'Point-and-click assemblies tests',
|
||||||
`Insert kcl parts into assembly as whole module import`,
|
{ tag: ['@electron', '@windows'] },
|
||||||
{ tag: ['@electron'] },
|
() => {
|
||||||
async ({
|
test(`Insert kcl parts into assembly as whole module import`, async ({
|
||||||
context,
|
context,
|
||||||
page,
|
page,
|
||||||
homePage,
|
homePage,
|
||||||
@ -168,13 +168,9 @@ test.describe('Point-and-click assemblies tests', () => {
|
|||||||
page.getByText('This file is already imported')
|
page.getByText('This file is already imported')
|
||||||
).toBeVisible()
|
).toBeVisible()
|
||||||
})
|
})
|
||||||
}
|
})
|
||||||
)
|
|
||||||
|
|
||||||
test(
|
test(`Can still translate, rotate, and delete inserted parts even with non standard code`, async ({
|
||||||
`Can still translate, rotate, and delete inserted parts even with non standard code`,
|
|
||||||
{ tag: ['@electron'] },
|
|
||||||
async ({
|
|
||||||
context,
|
context,
|
||||||
page,
|
page,
|
||||||
homePage,
|
homePage,
|
||||||
@ -364,13 +360,9 @@ test.describe('Point-and-click assemblies tests', () => {
|
|||||||
)
|
)
|
||||||
await toolbar.closePane('code')
|
await toolbar.closePane('code')
|
||||||
})
|
})
|
||||||
}
|
})
|
||||||
)
|
|
||||||
|
|
||||||
test(
|
test(`Insert the bracket part into an assembly and transform it`, async ({
|
||||||
`Insert the bracket part into an assembly and transform it`,
|
|
||||||
{ tag: ['@electron'] },
|
|
||||||
async ({
|
|
||||||
context,
|
context,
|
||||||
page,
|
page,
|
||||||
homePage,
|
homePage,
|
||||||
@ -555,13 +547,11 @@ test.describe('Point-and-click assemblies tests', () => {
|
|||||||
await toolbar.closePane('code')
|
await toolbar.closePane('code')
|
||||||
await scene.expectPixelColorNotToBe(partColor, midPoint, tolerance)
|
await scene.expectPixelColorNotToBe(partColor, midPoint, tolerance)
|
||||||
})
|
})
|
||||||
}
|
})
|
||||||
)
|
|
||||||
|
|
||||||
// TODO: bring back in https://github.com/KittyCAD/modeling-app/issues/6570
|
// TODO: bring back in https://github.com/KittyCAD/modeling-app/issues/6570
|
||||||
test.fixme(
|
test.fixme(
|
||||||
`Insert foreign parts into assembly as whole module import`,
|
`Insert foreign parts into assembly as whole module import`,
|
||||||
{ tag: ['@electron'] },
|
|
||||||
async ({
|
async ({
|
||||||
context,
|
context,
|
||||||
page,
|
page,
|
||||||
@ -610,7 +600,13 @@ test.describe('Point-and-click assemblies tests', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
await test.step('Insert step part as module', async () => {
|
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 toolbar.openPane('code')
|
||||||
await editor.expectEditor.toContain(
|
await editor.expectEditor.toContain(
|
||||||
`
|
`
|
||||||
@ -710,10 +706,15 @@ test.describe('Point-and-click assemblies tests', () => {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
test(
|
test('Assembly gets reexecuted when imported models are updated externally', async ({
|
||||||
'Assembly gets reexecuted when imported models are updated externally',
|
context,
|
||||||
{ tag: ['@electron'] },
|
page,
|
||||||
async ({ context, page, homePage, scene, toolbar, cmdBar, tronApp }) => {
|
homePage,
|
||||||
|
scene,
|
||||||
|
toolbar,
|
||||||
|
cmdBar,
|
||||||
|
tronApp,
|
||||||
|
}) => {
|
||||||
if (!tronApp) {
|
if (!tronApp) {
|
||||||
fail()
|
fail()
|
||||||
}
|
}
|
||||||
@ -797,13 +798,9 @@ foreign
|
|||||||
await scene.expectPixelColor(partColor, midPoint, tolerance)
|
await scene.expectPixelColor(partColor, midPoint, tolerance)
|
||||||
await scene.expectPixelColor(bgColor, washerPoint, tolerance)
|
await scene.expectPixelColor(bgColor, washerPoint, tolerance)
|
||||||
})
|
})
|
||||||
}
|
})
|
||||||
)
|
|
||||||
|
|
||||||
test(
|
test(`Point-and-click clone`, async ({
|
||||||
`Point-and-click clone`,
|
|
||||||
{ tag: ['@electron'] },
|
|
||||||
async ({
|
|
||||||
context,
|
context,
|
||||||
page,
|
page,
|
||||||
homePage,
|
homePage,
|
||||||
@ -1029,6 +1026,6 @@ washer
|
|||||||
{ shouldNormalise: true }
|
{ shouldNormalise: true }
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
})
|
|
||||||
|
Reference in New Issue
Block a user