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

[plugin-mobile-app] Add step to press sequence of keys #1526

Merged
merged 1 commit into from
Mar 30, 2021
Merged

Conversation

uarlouski
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Mar 29, 2021

Codecov Report

Merging #1526 (0aff08f) into master (fbdcc40) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1526      +/-   ##
============================================
+ Coverage     95.60%   95.63%   +0.02%     
- Complexity     4940     4981      +41     
============================================
  Files           697      702       +5     
  Lines         14251    14348      +97     
  Branches        992      995       +3     
============================================
+ Hits          13625    13722      +97     
  Misses          493      493              
  Partials        133      133              
Impacted Files Coverage Δ Complexity Δ
...a/org/vividus/bdd/mobileapp/steps/DeviceSteps.java 100.00% <100.00%> (ø) 10.00 <5.00> (+4.00)
...src/main/java/org/vividus/util/json/JsonUtils.java 100.00% <0.00%> (ø) 12.00% <0.00%> (+1.00%)
...ava/org/vividus/bdd/steps/json/JsonPatchSteps.java 100.00% <0.00%> (ø) 2.00% <0.00%> (ø%)
...java/org/vividus/azure/cosmos/CosmosDbService.java 100.00% <0.00%> (ø) 6.00% <0.00%> (?%)
.../vividus/azure/cosmos/model/CosmosDbContainer.java 100.00% <0.00%> (ø) 12.00% <0.00%> (?%)
...g/vividus/azure/cosmos/model/CosmosDbDatabase.java 100.00% <0.00%> (ø) 5.00% <0.00%> (?%)
...rg/vividus/azure/cosmos/model/CosmosDbAccount.java 100.00% <0.00%> (ø) 5.00% <0.00%> (?%)
...n/java/org/vividus/azure/cosmos/CosmosDbSteps.java 100.00% <0.00%> (ø) 8.00% <0.00%> (?%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fbdcc40...0aff08f. Read the comment docs.

.collect(Collectors.collectingAndThen(Collectors.toList(), keyEvents ->
{
PressesKey pressesKey = webDriverProvider.getUnwrapped(PressesKey.class);
keyEvents.forEach(pressesKey::pressKey);
Copy link
Collaborator

Choose a reason for hiding this comment

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

it could be a part of the wrapping stream

Copy link
Member Author

Choose a reason for hiding this comment

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

it needs to eliminate multiple invocations of webDriverProvider.getUnwrapped(PressesKey.class)

Copy link
Collaborator

Choose a reason for hiding this comment

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

just unwrap it once before stream start

Copy link
Member Author

Choose a reason for hiding this comment

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

what if one of the keys is invalid? then the wrapping becomes pointless

Copy link
Collaborator

Choose a reason for hiding this comment

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

tricky question: what is better to create a list or to cast an object to another type

@sonarcloud
Copy link

sonarcloud bot commented Mar 30, 2021

Kudos, SonarCloud Quality Gate passed!

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@valfirst valfirst merged commit 1a715a0 into master Mar 30, 2021
@valfirst valfirst deleted the pressKeys branch March 30, 2021 11:27
@uarlouski uarlouski restored the pressKeys branch March 30, 2021 12:24
@uarlouski uarlouski deleted the pressKeys branch March 30, 2021 12:30
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