chore: clean up mutator tests (#7434)

* chore: work on cleaning up mutator tests

* chore: remove need for dragBlockSelector

* chore: add helpers to clean up tests

* chore: add issue link in TODO

* chore: format and add docs for new helpers

* Revert "chore: remove need for dragBlockSelector"

This reverts commit dfec88a6aa.

* chore: fixup connect helper
This commit is contained in:
Beka Westberg
2023-08-28 15:01:10 -07:00
committed by GitHub
parent 650e620e2b
commit 8193cffe77
3 changed files with 100 additions and 76 deletions

View File

@@ -1213,6 +1213,7 @@ export abstract class Flyout extends DeleteArea implements IFlyout {
}
// Clone the block.
// TODO(#7432): Add a saveIds parameter to `save`.
const json = blocks.save(oldBlock) as blocks.State;
// Normallly this resizes leading to weird jumps. Save it for terminateDrag.
targetWorkspace.setResizesEnabled(false);