Kitchensink App/APITestStructure
Jump to navigation
Jump to search
The API model is defined in kitchensink-app/js/apis/models.js. It is instantiated for each API in kitchensink-app/js/apis/index.js.
Test types
Kitchensink uses tests which can be automated (do not require user interaction). It is then impossible to test web activities.
DOM preparation
Defined in API::isPrepared method and called from API::testPreparation. Checks if DOM has the required property defined. Returns true if test is successful and false otherwise.
Actual tests
Defined in API::tests array and run from API::runTests. Each test has to call a callback which is then used to mark result in UI.