Site Test

Site test is a set of site testing tools that is included in Foundation Core's repo.

Accessing Site Test#

Site test will usually sit at /site-test on a Subism project. It is accessible without being logged in or a password on dev and staging modes.

On Production Servers#

In production mode the site test page will display a 404 page unless we add a security key to the .env file and the url we access site-test with like this (change the key on each site):

In the.env file

SITE_TEST_AZQ=987ds8a90dhhuioedipjlsad

and visit: /site-test?azq=987ds8a90dhhuioedipjlsad

caution

On production servers the following tests will not function:

  • Check for Console Logs and Errors
  • Check for SEO Errors

Tests#

Search#

Find some text in the source html of the page. As this searches the source of the page you can look for html tags, classes or any other string.

Validate W3C#

Send the pages source to the W3C validator, to catch any non standards compliant page elements.

Check for TODO's#

Check for left over TODO: text in the source of the page.

Check for Lorem Ipsum#

Check for any lorem ipsum text in the source of the page.

Check Accessibility (requires tunnel/external site access)#

This no longer functions as the 3rd party site is no longer avaiable

Check for Console Logs and Errors (Dev & Staging only)#

Check that there are no stray Javascript console logs or Errors. This will not function on a production environment.

Check for SEO Errors (Dev & Staging only)#

Check for basic SEO errors, e.g. missing meta description tags. This will not function on a production environment.