surface a method to empty the clipboard contents#2424
Conversation
labkey-tchad
left a comment
There was a problem hiding this comment.
Does this actually work? This isn't really how clipboards work; copying with no selection doesn't generally clear the clipboard (maybe OS dependent?). You might need to set it to a single space (" ") to actually clear it. That's what my password manager does to avoid leaving password in the clipboard for too long.
Does it work? Good question. At least on Windows, I can confirm that it does work. With some text in my clipboard, running that method means whatever was in my clipboard isn't any more. For better context, PlateEditorTest.testCopyPasteColumnContent is the failure I'm trying to address. |
labkey-tchad
left a comment
There was a problem hiding this comment.
Does this work on Windows on TeamCity? If not, consider adding a workaround similar to the one in getClipboardContent
run queued to see: https://teamcity.labkey.org/buildConfiguration/LabKey_Trunk_Premium_ProductSuites_Biologics_BiologicsWindows?branch=chris_misc_tc_failures_fixes_4_22&buildTypeTab=overview Result: PlateEditorTest.testCopyPasteColumnContent still fails, but because the copied content from the grid didn't include line breaks 🤔 I don't see the logging info from |
Rationale
This change adds a public method to allow tests to clear the clipboard without resorting to copying empty grid cells
Related Pull Requests
https://github.com/LabKey/limsModules/pull/1355
Changes