User tests: Successful: Unsuccessful:
Doesn't do much, but hopefully it's a start. ;-)
@chrisdavenport Thanks :) I just checked the logs on travis, issue is when Codeception is trying to look for Iframe 'Smart search Indexer' this happens in test administratorRunTheIndexer, what is the name or Id of the frame that we need to interact with?
Codeception can only identify by Name or Id of the iframe.
The name is "Smart Search Indexer". There is no id. The tests run perfectly on my laptop.
@chrisdavenport The problem is the 5 second wait before switching to the iframe. After 5 seconds the iFrame is already closed again (on Travis and on fast computers).
Just tested locally and have the same issue. You can try reducing wait time to for example to 1 second or try a different approach like waiting for the element.
$I->wait(5); // This is way too long
$I->switchToIframe('Smart Search Indexer');
Imo it has something to do with the computer speed / available processing power. For me it fails roughly every 30 to 40 runs on a random point, but not more often.
On Travis it's also not that common. @chrisdavenport You can just restart the travis checks, then they probably should pass. (Except for PHP 7 but this is a different story)
We are still working hard on fixing this issue, using higher timeouts and better wait for elements.
@pritalpatel cc / can you please have a look at this PR and help Chris improving it :-)
@pritalpatel All your suggestions have been incorporated. Thanks for helping me improve this PR.
Welcome @chrisdavenport happy to help :)
@chrisdavenport Travis still fails with the switch to the iframe (probably to fast closed). Until we have a better solution i would suggest you don't actually switch to the iframe for now, but check the result of the indexing to make the tests more stable.
After the iframe there is an redirect taking place to the updated list. There your article should show up, which should sufficient to test :-)
As @pritalpatel suggested it is also a good idea, to add some more $I->checkForPhpNoticesOrWarnings(); on other places too.
@chrisdavenport Please send this PR into GSoC project repository. As this repository is aimed to have only weblink tests.
Thanks.
Hmm Travis is failing. But i have no idea why and i can't see anything realted to
background-image
: