1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-08-06 16:22:46 +03:00
Files
element-web/test/unit-tests/components/structures/__snapshots__/FileDropTarget-test.tsx.snap
Michael Telatynski 2b8f95a25b Disable file drag-and-drop if insufficient permissions (#30186)
* Disable file drag-and-drop if insufficient permissions

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Add tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-06-24 13:26:03 +00:00

21 lines
597 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`FileDropTarget should not render drop file prompt on mouse over with file if permissions do not allow 1`] = `<DocumentFragment />`;
exports[`FileDropTarget should render drop file prompt on mouse over with file if permissions allow 1`] = `
<DocumentFragment>
<div
class="mx_FileDropTarget"
>
<img
alt=""
class="mx_FileDropTarget_image"
src="image-file-stub"
/>
Drop file here to upload
</div>
</DocumentFragment>
`;
exports[`FileDropTarget should render nothing when idle 1`] = `<DocumentFragment />`;