[Windows] Fixed the text and icon color issues in the DatePicker when hovering over it.#27147
Conversation
|
Hey there @Ahamed-Ali! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
jsuarezruiz
left a comment
There was a problem hiding this comment.
Could you include an UITest? I can include something like a MovePointer and MovePointerToCoordinate methods.
I have included the test sample and test case. Could you please review them and let me know if you have any concerns? @jsuarezruiz |
| { | ||
| App.WaitForElement("Label"); | ||
|
|
||
| //need to include something like a MovePointer and MovePointerToCoordinate methods for hovering. |
There was a problem hiding this comment.
Have done tests with different approaches:
Using the Hover command https://github.com/appium/appium-windows-driver?tab=readme-ov-file#windows-hover is not available in the used version:
An exception of type 'System.NotImplementedException' occurred in WebDriver.dll but was not handled in user code
Unknown windows command 'hover'. Only startRecordingScreen,stopRecordingScreen,deleteFile,deleteFolder commands are supported.
Trying to move the cursor fails because using PointerKind.Mouse:
OpenQA.Selenium.WebDriverException: 'Currently only pen and touch pointer input source types are supported'
Can give a way to move the cursor using Win32, but want to test more options.
So, for now, can avoid the test, or use a Device Test to verify the color in the added resources.
There was a problem hiding this comment.
Thank you for your response. I have looked into the device test for the DatePicker hovering test case but couldn't find any relevant references for it. Could you please share any related references for hovering testcase if available, or can we avoid this test for now? @jsuarezruiz
There was a problem hiding this comment.
I think @mattleibow has a PR here that provides this behavior
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Looks like a legit test fail |
|
/rebase |
1d51732 to
b0a6504
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
| App.WaitForElement("Label"); | ||
|
|
||
| //need to include something like a MovePointer and MovePointerToCoordinate methods for hovering. | ||
|
|
There was a problem hiding this comment.
The image is incorrect. I have restricted the test for now. Once implementation PR #27477 is merged, we can add MoveCursor and enable the test. @jsuarezruiz
|
/rebase |
f7a5f2a to
99cc3cd
Compare
|
/rebase |
99cc3cd to
a3bfcd4
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Retarget to the inflight branch. |
… hovering over it. (#27147) * Fixed the Hovering issue of text and icon color in the DatePicker in windows. * Included the UI test sample and test case * Modified the test * Added Device Test --------- Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
… hovering over it. (#27147) * Fixed the Hovering issue of text and icon color in the DatePicker in windows. * Included the UI test sample and test case * Modified the test * Added Device Test --------- Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
… hovering over it. (#27147) * Fixed the Hovering issue of text and icon color in the DatePicker in windows. * Included the UI test sample and test case * Modified the test * Added Device Test --------- Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>


Issue
Root Cause of the issue
Description of Change
Issues Fixed
Fixes #22987
Test Case
Tested the behaviour in the following platforms
Screenshot
HoveringIssue.mp4
HoveringFixed.mp4