Duplicate image being generated with default name like embedded1.png when using scenario.attach() in cucumber java
I am new to Playwright and cucumber. I have setup a simple project where I am taking a screenshot of the Home Page when login is successful on a website. Screenshot is getting generated in TestScreenshots folder but with 2 screenshots. One is the name which I am giving using Playwright and Second is generated automatically. How to stop Cucumber to auto generate this embedded1.png? I am not able to find the exact issue. I am using Junit4 as runner