From 4e5819c897602b3366051e74edc538bd0dadc88c Mon Sep 17 00:00:00 2001 From: ftoromanoff Date: Thu, 2 May 2024 17:25:48 +0200 Subject: [PATCH] refactor(3dtiles_ion): to reset: tests functional test 3dtile_ion --- test/functional/3dtiles_ion.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/functional/3dtiles_ion.js b/test/functional/3dtiles_ion.js index d402d22442..89d6dbd2f5 100644 --- a/test/functional/3dtiles_ion.js +++ b/test/functional/3dtiles_ion.js @@ -22,11 +22,15 @@ describe('3dtiles_ion', function _() { }); it('should pick a building from 3D', async () => { + // const res = await page.evaluate(() => { await page.evaluate(() => { const lyonExtent = new itowns.Extent('EPSG:4326', 4.85, 4.9, 45.75, 45.77); itowns.CameraUtils.transformCameraToLookAtTarget(view, view.camera3D, lyonExtent); + return 'transformCameraToLookAtTarget sent'; }); + // console.log(res); await waitUntilItownsIsIdle(this.fullTitle()); + // console.log('waitUntilItownsIsIdle', this.fullTitle()); const layers = await page.evaluate( () => view.pickObjectsAt({ x: 166, @@ -34,7 +38,9 @@ describe('3dtiles_ion', function _() { }) .map(p => p.layer.id), ); + // console.log(layers); - assert.ok(layers.indexOf('3d-tiles-cesium-ion') >= 0); + assert.ok(layers.length > 0, 'layer picked is empty'); + assert.ok(layers.indexOf('3d-tiles-cesium-ion') >= 0, '3d-tiles-cesium-ion was not found'); }); });