Skip to content

Commit aaab355

Browse files
committed
Remove absolute px scene checks in Fillet point-and-click delete
1 parent 11f88c6 commit aaab355

File tree

1 file changed

+0
-61
lines changed

1 file changed

+0
-61
lines changed

e2e/playwright/point-click.spec.ts

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,19 +1809,6 @@ fillet(extrude001, radius = 5, tags = [getOppositeEdge(seg02)])
18091809
const standaloneUnassignedFilletDeclaration =
18101810
'fillet(extrude001, radius = 5, tags = [getOppositeEdge(seg02)])'
18111811

1812-
// Locators
1813-
const pipedFilletEdgeLocation = { x: 600, y: 193 }
1814-
const standaloneFilletEdgeLocation = { x: 600, y: 383 }
1815-
const bodyLocation = { x: 630, y: 290 }
1816-
1817-
// Colors
1818-
const edgeColorWhite: [number, number, number] = [248, 248, 248]
1819-
const bodyColor: [number, number, number] = [155, 155, 155]
1820-
const filletColor: [number, number, number] = [127, 127, 127]
1821-
const backgroundColor: [number, number, number] = [30, 30, 30]
1822-
const lowTolerance = 20
1823-
const highTolerance = 40
1824-
18251812
// Setup
18261813
await test.step(`Initial test setup`, async () => {
18271814
await context.addInitScript((initialCode) => {
@@ -1830,16 +1817,6 @@ fillet(extrude001, radius = 5, tags = [getOppositeEdge(seg02)])
18301817
await page.setBodyDimensions({ width: 1000, height: 500 })
18311818
await homePage.goToModelingScene()
18321819
await scene.settled(cmdBar)
1833-
1834-
// verify modeling scene is loaded
1835-
await scene.expectPixelColor(
1836-
backgroundColor,
1837-
standaloneFilletEdgeLocation,
1838-
lowTolerance
1839-
)
1840-
1841-
// wait for stream to load
1842-
await scene.expectPixelColor(bodyColor, bodyLocation, highTolerance)
18431820
})
18441821

18451822
// Test
@@ -1860,18 +1837,6 @@ fillet(extrude001, radius = 5, tags = [getOppositeEdge(seg02)])
18601837
standaloneUnassignedFilletDeclaration
18611838
)
18621839
})
1863-
await test.step('Verify test fillets are present in the scene', async () => {
1864-
await scene.expectPixelColor(
1865-
filletColor,
1866-
pipedFilletEdgeLocation,
1867-
lowTolerance
1868-
)
1869-
await scene.expectPixelColor(
1870-
backgroundColor,
1871-
standaloneFilletEdgeLocation,
1872-
lowTolerance
1873-
)
1874-
})
18751840
await test.step('Delete piped fillet', async () => {
18761841
const operationButton = await toolbar.getFeatureTreeOperation(
18771842
'Fillet',
@@ -1891,18 +1856,6 @@ fillet(extrude001, radius = 5, tags = [getOppositeEdge(seg02)])
18911856
standaloneUnassignedFilletDeclaration
18921857
)
18931858
})
1894-
await test.step('Verify piped fillet is deleted but non-piped is not (in the scene)', async () => {
1895-
await scene.expectPixelColor(
1896-
edgeColorWhite, // you see edge because fillet is deleted
1897-
pipedFilletEdgeLocation,
1898-
lowTolerance
1899-
)
1900-
await scene.expectPixelColor(
1901-
backgroundColor, // you see background because fillet is not deleted
1902-
standaloneFilletEdgeLocation,
1903-
lowTolerance
1904-
)
1905-
})
19061859
})
19071860

19081861
await test.step('Delete standalone assigned fillet via feature tree selection', async () => {
@@ -1924,13 +1877,6 @@ fillet(extrude001, radius = 5, tags = [getOppositeEdge(seg02)])
19241877
standaloneUnassignedFilletDeclaration
19251878
)
19261879
})
1927-
await test.step('Verify standalone assigned fillet is deleted but piped is not (in the scene)', async () => {
1928-
await scene.expectPixelColor(
1929-
edgeColorWhite,
1930-
standaloneFilletEdgeLocation,
1931-
lowTolerance
1932-
)
1933-
})
19341880
})
19351881

19361882
await test.step('Delete standalone unassigned fillet via feature tree selection', async () => {
@@ -1949,13 +1895,6 @@ fillet(extrude001, radius = 5, tags = [getOppositeEdge(seg02)])
19491895
standaloneUnassignedFilletDeclaration
19501896
)
19511897
})
1952-
await test.step('Verify standalone unassigned fillet is deleted but piped is not (in the scene)', async () => {
1953-
await scene.expectPixelColor(
1954-
edgeColorWhite,
1955-
standaloneFilletEdgeLocation,
1956-
lowTolerance
1957-
)
1958-
})
19591898
})
19601899
})
19611900
})

0 commit comments

Comments
 (0)