Automated testing

Setting up your web pages to use the Framework


All Framework components are robustly tested to ensure that they work reliably with the browsers within the browser support matrix. There are also integration, unit, accessibility and visual regression tests to help ensure the Framework components remain reliably following any code change.

From v5.0.0, when running any automated testing, in order to help make tests run more reliably some features can be automatically disabled. These include:

  • Lazy loading of JavaScript - All JavaScript will be loaded on initial page load or as soon as the element has been added to the page.
  • Lazy loading of Images - No images will be lazy loaded.
  • Animations - both CSS and JavaScript animations will be disabled.

To enable test mode within you pages place the following code before the call to init.js within your page template.

<script>
	var FRAMEWORK = window.FRAMEWORK || {};
	FRAMEWORK.testEnv = true;
</script>