if we're using waitForElementNotVisibleByElement in verifyTOCcollapsed, shouldn't we use waitForElementVisibleByElement here?