Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format
  • Loading branch information
torounit committed Jun 3, 2021
commit 9f310025264cd90b78ce858802ea32cde151cde9
4 changes: 2 additions & 2 deletions packages/e2e-tests/specs/editor/blocks/list.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ describe( 'List', () => {
( el ) => el.innerHTML
);
expect( content ).toMatchSnapshot();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use await getEditedPostContent() here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what we use everywhere else to check the edited HTML content 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ellatrix
This change could not be tested with getEditedPostContent. Testing with getEditedPostContent passes on the current trunk.

This is because the state of the editor has been changed, but the DOM is not rendered correctly, which causes this problem to persist.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could if you type another character (make another change)? Anyway, this is fine too :)

});
} );

it( 'should not change the contents when you change the list type to Unordered', async () => {
await clickBlockAppender();
Expand All @@ -538,5 +538,5 @@ describe( 'List', () => {
( el ) => el.innerHTML
);
expect( content ).toMatchSnapshot();
});
} );
} );