playwright: [Bug]: Text fill is NOT working as expected in playwright version 1.53.1
Version
1.53.1
Steps to reproduce
In playwright version 1.52.0, things were working as expected and our text field fills were working properly. We were :
- checking to see if text field is editable
- scrollintoviewIfNeeded
- clearing the text field
- fill the text field with user value and assert to see if the value is reflected (expect().toHaveText()).
- fire the blur event.
we recently upgraded playwright to 1.53.1 and see that our fill and clear events are not working properly. We are seeing a case where the fill event either happens too fast and the field does not hydrate properly or the clear event happens (in debug mode, fill seems to have completed) and the field seems to be empty.
We also see this coming up between page loads as well when the test transitions between pages.
I apologize in advance for not sharing a minimal reproduceable repo.
Expected behavior
I expect the value that the user provides to be filled into a text field.
Actual behavior
Text field is empty, waiting for and the text fill is NOT happening as expected
Additional context
No response
Environment
System :
OS: macOS 14.7.6
Binaries:
Node - 20.15.0
npm - 10.7.0
npmPackages:
@playwright/test: 1.53.1
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (6 by maintainers)
Could you try running with the following in the config? Perhaps this could be related to a new Chromium feature that was shipped recently.
@Skn0tt - Thank you very much for the work around. We will try using it and hopefully our development group is also able to resolve the issue. I appreciate the help provided.
In the meantime, i would like to keep this thread open for one more day (silly hope that others in the community might be facing an issue similar to mine). I hope that is ok.
Thank you again for looking into this issue for us.
I will try my best to supply with a sample although i do not have any git repo yet:
I am so sorry again. i am not able to provide a full fledged repo.
Hope this helps.
@romankhomitskyi - thank you for providing a video for the issue.
@Skn0tt - thank you for taking a look at the issue.
What we notice is that the event happens too quickly and as stated earlier, the value does NOT show up in the UI after the event is fired.