This package uses Siesta for Unit-/UI-testing.
tl;dr
npx create-siesta
npm run test:siesta
Explanation:
Run
npx create-siesta
will install Siesta and the Sencha Ext JS Sources required for running the tests.
in the NPM package. The tool will guide you through the process of symlinking to an existing ExtJS SDK installation
Warning:
Make a backup of your ./test
folder in case you accidentally let create-siesta
override it.
Once this is done, boilerplate-html
files will be copied to the project (to: ./tests.redirect.html
and ./tests/index.extjs-browser.html
).
After this was done, run
npm run test:siesta
which will start a lightweight local webserver on 127.0.0.1/localhost. This will also try automatically open your system's default web-browser and load the test main-page.
- To run the tests with the classic toolkit, append the query string
toolkit=classic
(default) - To run the tests with the modern toolkit, append the query string
toolkit=modern
Example-URL _(toolkit=modern)
http://127.0.0.1:8000/tests/index.html?toolkit=modern
When running a test project with simultaneous calls to DOM-operations and XmlHttpRequests, it is sometimes necessary to extend the duration of tests and test-setups.
-
To extend the TIMEOUT of
waitForMs
-calls, use the url-parametertimeout
:timeout=750
Example-URL _(toolkit=classic with a timeout of 1000ms)
http://127.0.0.1:8000/tests/index.html?toolkit=classic&timeout=1000