use dijit/tests/helpers::waitForLoad rather than duplicating code, refs #7681