Sanity testing is performed whenever cursory testing is sufficient to show the application is functioning according to specifications. This level of testing is a subset of regression testing.
It normally contains a set of core tests of basic GUI functionality to demonstrate linking to the database, application servers, printers, etc.