Skip to content

Commit 69f1099

Browse files
committed
refactor(3dtiles_ion): to reset: tests functional test 3dtile_ion
1 parent a942010 commit 69f1099

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/functional/3dtiles_ion.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,25 @@ describe('3dtiles_ion', function _() {
2222
});
2323

2424
it('should pick a building from 3D', async () => {
25+
// const res = await page.evaluate(() => {
2526
await page.evaluate(() => {
2627
const lyonExtent = new itowns.Extent('EPSG:4326', 4.85, 4.9, 45.75, 45.77);
2728
itowns.CameraUtils.transformCameraToLookAtTarget(view, view.camera3D, lyonExtent);
29+
return 'transformCameraToLookAtTarget sent';
2830
});
31+
// console.log(res);
2932
await waitUntilItownsIsIdle(this.fullTitle());
33+
// console.log('waitUntilItownsIsIdle', this.fullTitle());
3034
const layers = await page.evaluate(
3135
() => view.pickObjectsAt({
3236
x: 166,
3337
y: 65,
3438
})
3539
.map(p => p.layer.id),
3640
);
41+
// console.log(layers);
3742

38-
assert.ok(layers.indexOf('3d-tiles-cesium-ion') >= 0);
43+
assert.ok(layers.length > 0, 'layer picked is empty');
44+
assert.ok(layers.indexOf('3d-tiles-cesium-ion') >= 0, '3d-tiles-cesium-ion was not found');
3945
});
4046
});

0 commit comments

Comments
 (0)