8000 [plugin-web-app] Introduce OS independent `CONTROL` key by valfirst · Pull Request #3800 · vividus-framework/vividus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[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

Merged
merged 2 commits into from
Apr 5, 2023

Conversation

valfirst
Copy link
Collaborator
@valfirst valfirst commented Apr 4, 2023

No description provided.

@valfirst valfirst requested a review from a team as a code owner April 4, 2023 11:59
@valfirst valfirst requested review from ikalinin1 and uarlouski April 4, 2023 11:59
@valfirst valfirst marked this pull request as draft April 4, 2023 11:59
@codecov
Copy link
codecov bot commented Apr 4, 2023

Codecov Report

Merging #3800 (f2841fb) into master (7911bef) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@             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              
Impacted Files Coverage Δ
.../vividus/mobileapp/steps/ActionsSequenceSteps.java 100.00% <ø> (ø)
...org/vividus/steps/ui/web/ActionsSequenceSteps.java 100.00% <ø> (ø)
.../main/java/org/vividus/ui/action/AtomicAction.java 100.00% <100.00%> (ø)
...ava/org/vividus/ui/action/AtomicActionFactory.java 100.00% <100.00%> (ø)
...i/converter/ParametersToAtomicActionConverter.java 100.00% <100.00%> (ø)
...vividus/ui/steps/AbstractActionsSequenceSteps.java 100.00% <100.00%> (ø)
.../mobileapp/action/MobileAtomicActionFactories.java 100.00% <100.00%> (ø)
...rc/main/java/org/vividus/selenium/KeysManager.java 100.00% <100.00%> (ø)
...n/java/org/vividus/steps/ui/web/KeyboardSteps.java 100.00% <100.00%> (ø)
...n/java/org/vividus/ui/web/action/FieldActions.java 98.03% <100.00%> (ø)
... and 1 more

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@valfirst valfirst force-pushed the introduce-os-independent-control branch from da6184b to 78d47a4 Compare April 4, 2023 13:52
@valfirst valfirst force-pushed the introduce-os-independent-control branch from 78d47a4 to f5b228e Compare April 4, 2023 14:42
@valfirst valfirst marked this pull request as ready for review April 4, 2023 15:02
notEmpty(keys, "At least one key should be provided");
for (String key : keys)
{
actionBuilder.accept(key.length() == 1 ? key : keysManager.convertToKey(true, key));
Copy link
Member

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?

Copy link
Collaborator Author

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:

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 |
Copy link
Member

Choose a reason for hiding this comment

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

please align the table :)

@sonarqubecloud
Copy link
sonarqubecloud bot commented Apr 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@valfirst valfirst merged commit c5b4978 into master Apr 5, 2023
@valfirst valfirst deleted the introduce-os-independent-control branch April 5, 2023 13:47
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
0