-
-
Notifications
You must be signed in to change notification settings - Fork 88
[plugin-web-app] Introduce OS independent CONTROL
key
#3800
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3800 +/- ##
============================================
+ Coverage 96.99% 97.01% +0.01%
- Complexity 6083 6095 +12
============================================
Files 851 849 -2
Lines 17449 17429 -20
Branches 1134 1136 +2
============================================
- Hits 16925 16908 -17
+ Misses 418 415 -3
Partials 106 106
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
da6184b
to
78d47a4
Compare
78d47a4
to
f5b228e
Compare
notEmpty(keys, "At least one key should be provided"); | ||
for (String key : keys) | ||
{ | ||
actionBuilder.accept(key.length() == 1 ? key : keysManager.convertToKey(true, key)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't we perform key validation in case of one key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this logic was here before:
vividus/vividus-plugin-web-app/src/main/java/org/vividus/ui/web/action/WebSequenceActionType.java
Lines 198 to 213 in c01f672
private static void buildKeysActions(List<String> keys, Consumer<CharSequence> actionBuilder) | |
{ | |
notEmpty(keys, "At least one key should be provided"); | |
for (String key : keys) | |
{ | |
if (key.length() == 1) | |
{ | |
actionBuilder.accept(key); | |
} | |
else | |
{ | |
isTrue(EnumUtils.isValidEnum(Keys.class, key), "The '%s' is not allowed as a key", key); | |
actionBuilder.accept(Keys.valueOf(key)); | |
} | |
} | |
} |
[source,gherkin] | ||
---- | ||
When I execute sequence of actions: | ||
|type |argument | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please align the table :)
Kudos, SonarCloud Quality Gate passed! |
No description provided.