Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the config.forceValue option in ListCommand #9371

Merged
merged 4 commits into from
Mar 30, 2021
Merged

Conversation

ma2ciek
Copy link
Contributor

@ma2ciek ma2ciek commented Mar 26, 2021

Suggested merge commit message (convention)

Internal: Introduced the config.forceValue option to ListCommand that allows overriding the default toggle-like behavior to allow more predictable state changes during applying track changes suggestions.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

@scofalik scofalik self-requested a review March 29, 2021 14:34
packages/ckeditor5-list/src/listcommand.js Outdated Show resolved Hide resolved
packages/ckeditor5-list/src/listcommand.js Outdated Show resolved Hide resolved
@@ -133,6 +133,33 @@ describe( 'ListCommand', () => {
} );
} );

describe( 'options.forceValue', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd make tests showing that lisItem with forceValue true does not change anything, and similarly for paragraphs and false. AFAICS, these tests describe "normal" behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are two assertions for each test to check both scenarios. But I can simplify these tests and split the 4 assertions into 4 tests.

Copy link
Contributor

@scofalik scofalik Mar 30, 2021

Choose a reason for hiding this comment

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

🤦 let's say it was late when I was reviewing

ma2ciek and others added 2 commits March 30, 2021 09:04
Co-authored-by: Szymon Cofalik <s.cofalik@cksource.com>
@scofalik scofalik merged commit e164485 into master Mar 30, 2021
@scofalik scofalik deleted the cf/3917 branch March 30, 2021 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants