Skip to content

[Drag & Drop blocks] Add integration tests #4881

@fluiddot

Description

@fluiddot

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.
  • Dropping a block re-orders the block list.
  • Scroll while dragging
    • Scrolls up when dragging a block to the top
    • Scrolls down when dragging a block to the bottom

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions