-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
users: actions fail due to unlocking errors when clicking too fast #9558
Comments
@stefwalter : FYI, this is the issue we talked about last week. I'll see to talk someone into fixing this :) |
I'd like to fix it! I don't even know where to start... It'll be great if you could provide some pointers 👶 |
@as-rawat : Nice! It shouldn't be too difficult actually. If you want to give it a stab, here are some notes which hopefully help. Also, if you want to work on this, I strongly recommend reading Working on your local machine so that you can develop on Cockpit with fast iteration cycles. For an old jquery/plain JavaScript page like users, disabling/enabling an element happens through the
So the exercise is to change Of course this should not disable every button/link individually, that would be laborius, error prone, and hard to maintain. It should work to disable a parent element which includes them all. My first guess would be #account-details. It could also be that the tests need updating, to wait until elements become enabled again. (I'm happy to help with that). |
Thanks for pointers! I think, I'm not getting a perfect picture of what's happening here... but I think... Please correct me! 😕 |
@as-rawat : You've got it right. 👍 |
@as-rawat: Do you still want to work on this? If not, I'd hand this to someone else, as it's one of our most annoying causes of test flakes. |
@martinpitt Sorry for not giving any details. I would like to work on it but wasn't able to cuz I was giving few interviews and searching for the jobs. |
Where dialog pop up, input elements are not disabled, since tests can wait for those to pop down. Fixes cockpit-project#9558 Closes cockpit-project#9979
The users page does not serialize or retry actions when doing lots of things in quick succession. This particularly affects our tests,
check-accounts
often fails with various errors. The associated screen shots say why:On other pages our approach is generally that we disable UI actions while an activity runs. This provides proper serialization and should work here as well.
The text was updated successfully, but these errors were encountered: