Lombiq / UI-Testing-Toolbox

Web UI testing toolbox for Orchard Core applications with Selenium. It discovers so many issues that you'll get impostor syndrome.
BSD 3-Clause "New" or "Revised" License
17 stars 6 forks source link

Disable "allow pasting" warning in Chrome's dev tools (OSOE-873) #382

Closed sarahelsaig closed 3 months ago

sarahelsaig commented 3 months ago

This noob-proofing security feature is incredibly annoying during test troubleshooting. We should see if it can be disabled, since it's not helpful to wed developers in the middle of a UI test. image

Jira issue

Piedone commented 3 months ago

It doesn't seem to be possible to disable this in any other way than indeed opening the console and typing allow pasting. How exactly is this causing an issue for you?

sarahelsaig commented 3 months ago

When I want to check a path from the code I'd start typing $() or $x() into the dev console, then try to paste like I'd do in my regular browser. The warning appears so I have to clear the input, type in "allow pasting" and then try again. And the setting is not remembered across UI tests. It's not a blocker, but it's very irritating and destroys the working experience.

It hard to believe that there is no automation flag to disable this in Chrome for Testing. I will research the question and open a Chrome issue if indeed it's not been raised (or more likely, link any already existing issue to keep an eye on).

Piedone commented 3 months ago

OK, thank you.

sarahelsaig commented 3 months ago

Looks like there is already something: https://issues.chromium.org/issues/41491762 I will try to implement it.

Piedone commented 3 months ago

Cool!