Rayrun
← Back to Discord Forum

Using .fill() in debug when passing in an object property fills the value twice

I have a class defined in the same file as my POM. This class just contains test data using faker.js. The class is instantiated in the constructor of my POM object, and used in one of the POM methods. It ends up filling in duplicates of the actual class values. Any reason this is happening?

image.png

This thread is trying to answer question "Why does using .fill() in debug mode when passing in an object property fill the value twice?"

6 replies

It looks like this is only happening in debug mode. Is this a known bug?

Using .fill() in debug when passing in an object property fills the value twice

play.wright_71287

I raised this issue the other day in a post. there is a workaround.

play.wright_71287

If someone else hit it, likely a bug should be raised so at least it can be triaged by the devs.

Ah okay I see, thanks! I'll try using pressSequentially until this gets fixed

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].