Checking for an element to be not visible sometimes fails on occasion, and upon close inspection, it seems that we do not need this call in test_setup_and_send_receive_imap_email.py
Yes, something has changed lately that causes these checks_for_not_visible anymore to fail occasionally. I noticed the same thing in bug 1196866, comment 3. I suspect we need to revisit all of these expected.element_not_displayed checks.
Comment on attachment 8651881 [details] [review] [gaia] npark-mozilla:1197468 > mozilla-b2g:master Shouldn't it also be removed here then? http://mxr.mozilla.org/gaia/source/tests/python/gaia-ui-tests/gaiatest/tests/functional/email/test_setup_and_send_imap_email.py#69 And then the whole function is not used anymore.
It does get hidden when a new email arrives, but wait_for_email() method already waits enough so I can tap on it. So it is a useful check, but not in my case. Let's see whether above script fails intermittently as well, then perhaps we could think about removing it here as well.
But why was it failing then in your case? I would think it would also fail in regular Gaia UI test then.
I think so too, but oddly I haven't seen reports of it failing on test_setup_and_send_imap_email.py. Only error regarding this script is https://bugzilla.mozilla.org/show_bug.cgi?id=1172477, and it's when the email actually did not get sent.