Skip to content

Commit

Permalink
chore(scene composer): cleaning up undefines in snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
mumanity committed Feb 14, 2024
1 parent 08fb141 commit bfb78e0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ describe('SceneNodeInspectorPanel returns expected elements.', () => {
...baseNode,
components: [
{
ref: '3D-obj-ref-1',
type: KnownComponentType.ModelRef,
},
],
Expand All @@ -88,6 +89,7 @@ describe('SceneNodeInspectorPanel returns expected elements.', () => {
...baseNode,
components: [
{
ref: '3D-obj-ref-1',
type: KnownComponentType.MotionIndicator,
shape: Component.MotionIndicatorShape.LinearPlane,
},
Expand All @@ -104,6 +106,7 @@ describe('SceneNodeInspectorPanel returns expected elements.', () => {
...baseNode,
components: [
{
ref: '3D-obj-ref-1',
type: KnownComponentType.Tag,
},
],
Expand All @@ -128,6 +131,7 @@ describe('SceneNodeInspectorPanel returns expected elements.', () => {
...baseNode,
components: [
{
ref: '3D-obj-ref-1',
type: KnownComponentType.DataOverlay,
subType: Component.DataOverlaySubType.TextAnnotation,
},
Expand Down Expand Up @@ -156,9 +160,11 @@ describe('SceneNodeInspectorPanel returns expected elements.', () => {
...baseNode,
components: [
{
ref: '3D-obj-ref-1',
type: KnownComponentType.Tag,
},
{
ref: '3D-obj-ref-2',
type: KnownComponentType.DataOverlay,
subType: Component.DataOverlaySubType.OverlayPanel,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. SceneNode panel cont
>
<div
data-mocked="Input"
data-testid="ip-undefined"
data-testid="ip-3D-obj-ref-1"
value="node-name"
/>
</div>
Expand Down Expand Up @@ -535,7 +535,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. SceneNode panel cont
<div
data-testid="ComponentEditMenu"
>
[{"nodeRef":"testNodeRef","currentComponent":{"type":"ModelRef"}},{}]
[{"nodeRef":"testNodeRef","currentComponent":{"ref":"3D-obj-ref-1","type":"ModelRef"}},{}]
</div>
</div>
</div>
Expand All @@ -546,7 +546,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. SceneNode panel cont
<div
data-testid="ComponentEditor"
>
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":true},"components":[{"type":"ModelRef"}]},"component":{"type":"ModelRef"}},{}]
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":true},"components":[{"ref":"3D-obj-ref-1","type":"ModelRef"}]},"component":{"ref":"3D-obj-ref-1","type":"ModelRef"}},{}]
</div>
</div>
</div>
Expand Down Expand Up @@ -648,7 +648,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable rotation, hi
>
<div
data-mocked="Input"
data-testid="ip-undefined"
data-testid="ip-3D-obj-ref-1"
value="node-name"
/>
</div>
Expand Down Expand Up @@ -911,7 +911,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable rotation, hi
<div
data-testid="ComponentEditMenu"
>
[{"nodeRef":"testNodeRef","currentComponent":{"type":"Tag"}},{}]
[{"nodeRef":"testNodeRef","currentComponent":{"ref":"3D-obj-ref-1","type":"Tag"}},{}]
</div>
</div>
</div>
Expand All @@ -922,7 +922,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable rotation, hi
<div
data-testid="ComponentEditor"
>
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":false},"components":[{"type":"Tag"},{"type":"DataOverlay","subType":"OverlayPanel"}]},"component":{"type":"Tag"}},{}]
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":false},"components":[{"ref":"3D-obj-ref-1","type":"Tag"},{"ref":"3D-obj-ref-2","type":"DataOverlay","subType":"OverlayPanel"}]},"component":{"ref":"3D-obj-ref-1","type":"Tag"}},{}]
</div>
</div>
</div>
Expand All @@ -944,7 +944,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable rotation, hi
<div
data-testid="ComponentEditMenu"
>
[{"nodeRef":"testNodeRef","currentComponent":{"type":"DataOverlay","subType":"OverlayPanel"}},{}]
[{"nodeRef":"testNodeRef","currentComponent":{"ref":"3D-obj-ref-2","type":"DataOverlay","subType":"OverlayPanel"}},{}]
</div>
</div>
</div>
Expand All @@ -955,7 +955,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable rotation, hi
<div
data-testid="ComponentEditor"
>
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":false},"components":[{"type":"Tag"},{"type":"DataOverlay","subType":"OverlayPanel"}]},"component":{"type":"DataOverlay","subType":"OverlayPanel"}},{}]
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":false},"components":[{"ref":"3D-obj-ref-1","type":"Tag"},{"ref":"3D-obj-ref-2","type":"DataOverlay","subType":"OverlayPanel"}]},"component":{"ref":"3D-obj-ref-2","type":"DataOverlay","subType":"OverlayPanel"}},{}]
</div>
</div>
</div>
Expand Down Expand Up @@ -1057,7 +1057,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable rotation, hi
>
<div
data-mocked="Input"
data-testid="ip-undefined"
data-testid="ip-3D-obj-ref-1"
value="node-name"
/>
</div>
Expand Down Expand Up @@ -1320,7 +1320,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable rotation, hi
<div
data-testid="ComponentEditMenu"
>
[{"nodeRef":"testNodeRef","currentComponent":{"type":"Tag"}},{}]
[{"nodeRef":"testNodeRef","currentComponent":{"ref":"3D-obj-ref-1","type":"Tag"}},{}]
</div>
</div>
</div>
Expand All @@ -1331,7 +1331,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable rotation, hi
<div
data-testid="ComponentEditor"
>
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":false},"components":[{"type":"Tag"}]},"component":{"type":"Tag"}},{}]
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":false},"components":[{"ref":"3D-obj-ref-1","type":"Tag"}]},"component":{"ref":"3D-obj-ref-1","type":"Tag"}},{}]
</div>
</div>
</div>
Expand Down Expand Up @@ -1433,7 +1433,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable scale and ro
>
<div
data-mocked="Input"
data-testid="ip-undefined"
data-testid="ip-3D-obj-ref-1"
value="node-name"
/>
</div>
Expand Down Expand Up @@ -1803,7 +1803,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable scale and ro
<div
data-testid="ComponentEditMenu"
>
[{"nodeRef":"testNodeRef","currentComponent":{"type":"DataOverlay","subType":"TextAnnotation"}},{}]
[{"nodeRef":"testNodeRef","currentComponent":{"ref":"3D-obj-ref-1","type":"DataOverlay","subType":"TextAnnotation"}},{}]
</div>
</div>
</div>
Expand All @@ -1814,7 +1814,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable scale and ro
<div
data-testid="ComponentEditor"
>
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":false},"components":[{"type":"DataOverlay","subType":"TextAnnotation"}]},"component":{"type":"DataOverlay","subType":"TextAnnotation"}},{}]
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":false},"components":[{"ref":"3D-obj-ref-1","type":"DataOverlay","subType":"TextAnnotation"}]},"component":{"ref":"3D-obj-ref-1","type":"DataOverlay","subType":"TextAnnotation"}},{}]
</div>
</div>
</div>
Expand Down Expand Up @@ -1916,7 +1916,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable y scale when
>
<div
data-mocked="Input"
data-testid="ip-undefined"
data-testid="ip-3D-obj-ref-1"
value="node-name"
/>
</div>
Expand Down Expand Up @@ -2281,7 +2281,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable y scale when
<div
data-testid="ComponentEditMenu"
>
[{"nodeRef":"testNodeRef","currentComponent":{"type":"MotionIndicator","shape":"LinearPlane"}},{}]
[{"nodeRef":"testNodeRef","currentComponent":{"ref":"3D-obj-ref-1","type":"MotionIndicator","shape":"LinearPlane"}},{}]
</div>
</div>
</div>
Expand All @@ -2292,7 +2292,7 @@ exports[`SceneNodeInspectorPanel returns expected elements. disable y scale when
<div
data-testid="ComponentEditor"
>
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":false},"components":[{"type":"MotionIndicator","shape":"LinearPlane"}]},"component":{"type":"MotionIndicator","shape":"LinearPlane"}},{}]
[{"node":{"ref":"node-ref","properties":{},"childRefs":[],"name":"node-name","transform":{"position":[1,1,1],"rotation":[0,0,0],"scale":[2,2,2]},"transformConstraint":{"snapToFloor":false},"components":[{"ref":"3D-obj-ref-1","type":"MotionIndicator","shape":"LinearPlane"}]},"component":{"ref":"3D-obj-ref-1","type":"MotionIndicator","shape":"LinearPlane"}},{}]
</div>
</div>
</div>
Expand Down

0 comments on commit bfb78e0

Please sign in to comment.