Testing Explorer for SDK #690
leanmendoza
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
Preview Mode
The Preview Mode in the browser interface is activated by setting the global variable
globalThis.preview = true
. To run the Preview Mode, use the CLI (dcl
) from SDK6, or thesdk-commands
from SDK7, which serve thestatic
folder containing the main pagepreview.html
that setsglobalThis.preview = true
.Preview Mode offers features such as a debug panel, scene boundary checkers, and multiplayer communications via WebSocket. It is used for testing and debugging scenes locally.
The SDK team has developed a preview server hosted at
https://sdk-test-scenes.decentraland.zone/
(not a World, but a PREVIEW) containing multiple scenes. This enables testing of the Preview Mode without needing to install the entire toolkit or run a local scene.Playground
The SDK Playground uses
sdk-test-scenes
to set up the environment (serving some endpoints) but spawns a global scene with in-memory built code.Testing
The primary goal for both pages is to ensure the scene starts working correctly and that every renderer-component works as intended. The
explorer-branch
selector is available in both pages using the?&explorer-branch=XXXXX
query parameter.1) SDK6 - Preview Mode
To test SDK6 scenes, navigate to
https://sdk-test-scenes.decentraland.zone/
.In the folder
https://github.com/decentraland/sdk-test-scenes/tree/main/test-scenes
there are many sub-folder with the coordinates of each scene, and each one has a test-case.2) SDK7 - Preview Mode
To test SDK7 scenes, navigate to
https://sdk-test-scenes.decentraland.zone/
and visit theGoerli Plaza
located at72,-5
, which contains all SDK7 scenes.3) Playground (SDK7 only)
To test the Playground, navigate to
https://playground.decentraland.org/
, wait for it to load, and then click theRun
button. Test each example provided by theExample
button.Examples with dev
Beta Was this translation helpful? Give feedback.
All reactions