Add missing collapse JS files to dropdown visual test

Closes #14726.