Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e-test: Fix dirty state e2e test (#22448)
In #22140, a change was made to the inserter to insert the block at the current selection. Since the e2e test had selected test inside a nested template part, the block was being inserted there, though it was supposed to be inserted at the end of the document. Before that PR, the behavior was to insert it at the end of the document, and not at the current selection. The fix is to select the document in the block breadcrumb before adding the block. This clears any selection so that adding the block block dirties the root entity and not a nested entity.
- Loading branch information