From 70f0899c06222d651efd0e61c2d1efabcbd4d586 Mon Sep 17 00:00:00 2001 From: Diego Marcos Segura Date: Fri, 1 Dec 2023 11:13:11 -0800 Subject: [PATCH] Try to fix tests on Github. Succeed on local --- tests/components/hand-tracking-controls.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/hand-tracking-controls.test.js b/tests/components/hand-tracking-controls.test.js index a58acf237fd..19e5ad92230 100644 --- a/tests/components/hand-tracking-controls.test.js +++ b/tests/components/hand-tracking-controls.test.js @@ -68,8 +68,6 @@ suite('tracked-controls-webxr', function () { suite('children entities', function () { test('attached to the wrist joint', function (done) { var boxEl = document.createElement('a-box'); - el.setAttribute('hand-tracking-controls', {hand: 'left'}); - el.components['hand-tracking-controls'].checkIfControllerPresent(); el.addEventListener('child-attached', function () { assert.equal(boxEl.object3D.parent, el.components['hand-tracking-controls'].wristObject3D); done(); @@ -78,6 +76,8 @@ suite('tracked-controls-webxr', function () { assert.ok(el.components['hand-tracking-controls'].wristObject3D); el.appendChild(boxEl); }); + el.setAttribute('hand-tracking-controls', {hand: 'left'}); + el.components['hand-tracking-controls'].checkIfControllerPresent(); }); });