UTBotJava icon indicating copy to clipboard operation
UTBotJava copied to clipboard

Align `Active profile(s)` field with surrounding

Open tyuldashev opened this issue 3 years ago • 2 comments

Description In Spring test generation dialog right border of Active profile(s) field is not aligned.

To Reproduce

  1. Install UnitTestBot plugin built from main in IntelliJ IDEA
  2. Open some Spring project
  3. Invoke test generation dialog

Expected behavior Active profile(s) is aligned with surrounding fields and have the same width as Test types and Mocking Strategy

Actual behavior image

tyuldashev avatar Aug 07 '23 11:08 tyuldashev

@tyuldashev @EgorkaKulikov Here are IntelliJ Platform Layout Guidelines. There is the requirement to Align the right borders of input boxes that have a similar length

However Tests type and Active profile(s) depend on Spring configuration. So this part of guidelines would be appropriate to apply. Mocking strategy also depends on Spring configuration - if an existing configuration is chosen. Parameterized tests cannot be selected in Spring test generation at all and is always disabled.

I suggest to make the following changes to the action dialog:

  1. Remove Parameterized tests from UI if Spring-based flow is applied.
  2. Align Tests type, Active profile(s), Mocking strategy with the left border of Spring configuration combo box.
  3. Right-align them.

alisevych avatar Aug 08 '23 09:08 alisevych

Related to:

  • #2409

alisevych avatar Sep 26 '23 11:09 alisevych