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 theme variants demo and test helpers. #4412

Merged
merged 1 commit into from
Jul 18, 2018

Conversation

SomeoneToIgnore
Copy link
Contributor

@SomeoneToIgnore SomeoneToIgnore commented Jul 17, 2018

Part of #4318

According to the task mentioned above, I need to add demos (and hence tests) to components:

The component demos highlight the usage of different variants

It's easier to do that in generic way, by adding methods that set things up for us.

Usage example: vaadin/vaadin-text-field-flow#91

updatedButtonText.startsWith("Remove"));
Assert.assertEquals(
"When a theme variant got added, component 'theme' attribute should contain one more variant that before",
previousThemes.size() + 1, updatedThemes.size());
Copy link
Collaborator

Choose a reason for hiding this comment

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

MINOR Cast one of the operands of this addition operation to a "long". rule

updatedButtonText.startsWith("Add"));
Assert.assertEquals(
"When a theme variant got removed, component 'theme' attribute should contain one less variant than before",
previousThemes.size() - 1, updatedThemes.size());
Copy link
Collaborator

Choose a reason for hiding this comment

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

MINOR Cast one of the operands of this subtraction operation to a "long". rule

@SomeoneToIgnore SomeoneToIgnore force-pushed the kb/add-theme-variants-helpers branch from d96d04d to 265d5f1 Compare July 17, 2018 16:50
@SomeoneToIgnore SomeoneToIgnore force-pushed the kb/add-theme-variants-helpers branch from 265d5f1 to 22a698d Compare July 17, 2018 16:59
@vaadin-bot
Copy link
Collaborator

SonarQube analysis reported 2 issues

  • MINOR 2 minor

Watch the comments in this conversation to review them.

@gilberto-torrezan gilberto-torrezan merged commit 9baee70 into master Jul 18, 2018
@gilberto-torrezan gilberto-torrezan added this to the 1.1.0.alpha1 milestone Jul 18, 2018
@SomeoneToIgnore SomeoneToIgnore deleted the kb/add-theme-variants-helpers branch July 19, 2018 07:56
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.

3 participants