-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Description
Description
Add integration tests to cover the Drag & Drop blocks functionality. We could try to cover the following parts:
- Drag mode (NOTE: We could test the drag mode by checking the visibility of the chip component, which should only be displayed when the drag mode is enabled)
- Text blocks
- When the block is unselected, long-pressing over the content enables drag mode.
- When the block is selected, long-pressing over the content enables the drag mode.
- When the block is selected and text is being edited, long-pressing over the content doesn't enable the drag mode.
- When the block is selected and text is being edited, long-pressing over other blocks enables the drag mode and disables text editing.
- Media blocks
- When the block is unselected, long-pressing over the content enables drag mode.
- When the block is selected, long-pressing over the content enables the drag mode.
- Nested blocks
- When the block is unselected, long-pressing over the content enables drag mode.
- When the block is selected, long-pressing over the content enables the drag mode.
- When a nested block is selected, long-pressing over the content enables the drag mode.
- Other blocks
- When the block is unselected, long-pressing over the content enables drag mode.
- When the block is selected, long-pressing over the content enables the drag mode.
- Text blocks
- Dropping a block re-orders the block list.
Scroll while draggingScrolls up when dragging a block to the topScrolls down when dragging a block to the bottom