Skip to content

Commit b3b346a

Browse files
Add test for rotated shape (#583)
* Add a rotated shape to test.jcad * try fixing test for cone * Update Playwright Snapshots --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 69d101c commit b3b346a

File tree

4 files changed

+51
-1
lines changed

4 files changed

+51
-1
lines changed

examples/test.jcad

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,56 @@
9898
]
9999
},
100100
"visible": true
101+
},
102+
{
103+
"name": "Cone 1",
104+
"parameters": {
105+
"Angle": 360.0,
106+
"Color": "#ff0000",
107+
"Height": 5.0,
108+
"Placement": {
109+
"Angle": 60.0,
110+
"Axis": [
111+
0.0,
112+
1.0,
113+
1.0
114+
],
115+
"Position": [
116+
3.0,
117+
20.0,
118+
13.0
119+
]
120+
},
121+
"Radius1": 5.0,
122+
"Radius2": 2.5
123+
},
124+
"shape": "Part::Cone",
125+
"shapeMetadata": {
126+
"centerOfMass": [
127+
4.202874427259597,
128+
20.491071428571427,
129+
14.473214285714286
130+
],
131+
"mass": 229.0744643242558,
132+
"matrixOfInertia": [
133+
[
134+
241.55165607122368,
135+
98.61305064978512,
136+
1672.0390587953646
137+
],
138+
[
139+
1573.4260081455654,
140+
80.51721869041907,
141+
241.55165607122368
142+
],
143+
[
144+
80.51721869041907,
145+
1409.0709237292454,
146+
98.61305064978512
147+
]
148+
]
149+
},
150+
"visible": true
101151
}
102152
],
103153
"options": {},

ui-tests/tests/ui.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ test.describe('UI Test', () => {
238238
// Select cone
239239
await page
240240
.locator('[data-test-id="react-tree-root"]')
241-
.getByText('Cone')
241+
.getByText('Cone 1')
242242
.click();
243243

244244
// Select other shape with ctrl key pressed
-1.51 KB
Loading
1.7 KB
Loading

0 commit comments

Comments
 (0)