You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Post lock modal shows "Someone else has taken over this post" after 10 seconds #79976
Joining a locked post results in a "This post is already being edited" dialog with a "Take over" button. After 10 seconds, the dialog changes to "Someone else has taken over this post", with the "Take over" button removed:
post-lock-modal-reproduction.mov
This can be reproduced with RTC turned off, but is related to test failures #79922 / #78753 which also show the post locked modal in response to a specific RTC condition. To reproduce without RTC:
With RTC turned off, create a new post and save.
Using another WordPress user, open the same post.
See a "This post is already being edited" dialog:
Wait about 10 seconds.
See the dialog change to "Someone else has taken over this post" and the "Take over" button be removed:
The failure is always the same assertion: the "Take over" link in the "This post is already being edited" post-locked modal is never found (collaboration-document-size-lock.spec.ts:159).
On CI, it appears inconsistent whether the editor loads fast enough to see the original "This post is already being edited" dialog, or the updated "Someone else has taken over this post" dialog.
It fails because the test is specifically looking for the "Take Over" button. collaboration-document-size-lock.spec.ts should be updated to work either way, because we are concerned about the too-large document size text and not the particular dialog text around it.
However, there's another problem here that that also causes the "Take over" button to be removed when it probably shouldn't be. It looks like we're using a stale lock value in the modal which causes the flip-flop. I'm not sure when this issue was introduced.
Activity
i-am-chitti commentedon Jul 8, 2026
Here is a PR I've raised which fixes the issue - #79997