Skip to content
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

Merged
merged 1 commit into from
Nov 11, 2020
Merged

Conversation

C0rby
Copy link
Contributor

@C0rby C0rby commented Nov 10, 2020

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

@C0rby C0rby self-assigned this Nov 10, 2020
@C0rby C0rby force-pushed the ui-tests-wait-for-thumbnails-fix branch 2 times, most recently from 8970ace to 79268cb Compare November 10, 2020 20:13
@C0rby
Copy link
Contributor Author

C0rby commented Nov 10, 2020

This should also fix all remaining broken tests in https://drone.owncloud.com/owncloud/ocis/1342/.
Let's hope it doesn't break anything. 🙏

@C0rby
Copy link
Contributor Author

C0rby commented Nov 10, 2020

Ah damn it.. when there are no files it fails of course...

@C0rby C0rby force-pushed the ui-tests-wait-for-thumbnails-fix branch from 79268cb to 684676e Compare November 10, 2020 21:37
@C0rby C0rby changed the title fix wait for thumbnails loaded fix loginAsUser Nov 10, 2020
@C0rby
Copy link
Contributor Author

C0rby commented Nov 10, 2020

So now I fixed it more locally in loginAsUser. Let's see if this works.

Copy link
Contributor

@dpakach dpakach left a 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.

@phil-davis phil-davis merged commit 6942f9f into master Nov 11, 2020
@delete-merged-branch delete-merged-branch bot deleted the ui-tests-wait-for-thumbnails-fix branch November 11, 2020 03:34
@phil-davis phil-davis changed the title fix loginAsUser [tests-only] fix loginAsUser Nov 11, 2020
@phil-davis
Copy link
Contributor

Note: this PR changed test code only, strictly-speaking a changelog was not required - but it does not hurt.

@C0rby
Copy link
Contributor Author

C0rby commented Nov 11, 2020

Ah good to know for next time. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants