test(jqLite): make iframe contents() test less flaky

Closes #8157