test: Add stickies tests (#5413)

* test: Add tests for stickies

* test: add sticky basic test

* test: add size dragging tests

* test: add delete sticky test

* test: add editing test

* test: update editing text

* test: add expansion tests

* test: add more tests

* test: clean up tests

* refactor: update dragging tests to make sense

* refactor: upate drag right test

* test: add shrink from right test

* test: refactor some more

* test: fix all tests

* test: clean up

* test: update number

* test: add z-index tests

* test: address comments

* test: fix mistake

* test: wait on save

* test: try button instead
This commit is contained in:
Mutasem Aldmour
2023-04-21 15:37:09 +02:00
committed by GitHub
parent dc2a7a307a
commit 649389edad
6 changed files with 299 additions and 7 deletions

View File

@@ -5,6 +5,7 @@
:ref="data.name"
:style="stickyPosition"
:data-name="data.name"
data-test-id="sticky"
>
<div
:class="{
@@ -41,7 +42,12 @@
</div>
<div v-show="showActions" class="sticky-options no-select-on-click">
<div v-touch:tap="deleteNode" class="option" :title="$locale.baseText('node.deleteNode')">
<div
v-touch:tap="deleteNode"
class="option"
data-test-id="delete-sticky"
:title="$locale.baseText('node.deleteNode')"
>
<font-awesome-icon icon="trash" />
</div>
</div>