-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tests-only] fix loginAsUser #4297
Conversation
8970ace
to
79268cb
Compare
This should also fix all remaining broken tests in https://drone.owncloud.com/owncloud/ocis/1342/. |
Ah damn it.. when there are no files it fails of course... |
79268cb
to
684676e
Compare
So now I fixed it more locally in loginAsUser. Let's see if this works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@C0rby the changes look good but we don't keep changelog items for test changes please merge if you're ok with that.
Note: this PR changed test code only, strictly-speaking a changelog was not required - but it does not hurt. |
Ah good to know for next time. 👍 |
waitForAllThumbnailsLoaded wasn't correctly waiting. It would return immediately if the files list was not loaded yet.loginAsUser wasn't correctly waiting for the files list. waitForAllThumbnailsLoaded returns immediately if the list or loader takes longer to appear.
Found here https://drone.owncloud.com/owncloud/ocis/1342/32/7
https://github.com/owncloud/phoenix/blob/572da6eeef637ce304cec5a366b9e423affb4772/tests/acceptance/helpers/loginHelper.js#L32