[iOS] DatePicker | Remove unnecessary UpdateDate() call in UpdateTextColor()#27811
Conversation
rmarinho
left a comment
There was a problem hiding this comment.
The comment does say it was needed. Can you add a test where changing the color will still update on the UI?
eac116b to
0f17f8f
Compare
|
@rmarinho I added a test. However , text color is a styling property, and Appium does not provide a way to verify it directly. The current test confirms that the binding updates correctly, but it does not guarantee that the UI visually reflects the color change. Edit: Never mind I figured it's need to be verified comparing snapshots. Screen.Recording.mov |
|
/azp run |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
/rebase |
35716ba to
b302eb0
Compare
|
@jfversluis Could you run pipelines? |
|
Azure Pipelines successfully started running 3 pipeline(s). |
b302eb0 to
acb4b23
Compare
|
|
||
| public override string Issue => "DatePicker default format on iOS"; | ||
|
|
||
| #if !MACCATALYST |
There was a problem hiding this comment.
The DatePicker seems inconsistent on Mac. The TextColor property definitely isn't working. Check #20904
There was a problem hiding this comment.
Are you able to wrap the whole file with a #if TEST_FAILS_ON_CATALYST?
See
I am not sure if we have something that is watching files for these lines to give us stats or something. AI or someting maybe.
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/rebase |
8f9ee10 to
8f70f14
Compare
|
/azp run |
This comment was marked as outdated.
This comment was marked as outdated.
|
Azure Pipelines successfully started running 3 pipeline(s). |
mattleibow
left a comment
There was a problem hiding this comment.
Code looks good. Nice test.
I think there may be some tech involved with the way to exclue failing tests on some platforms. Added a comment.
|
|
||
| public override string Issue => "DatePicker default format on iOS"; | ||
|
|
||
| #if !MACCATALYST |
There was a problem hiding this comment.
Are you able to wrap the whole file with a #if TEST_FAILS_ON_CATALYST?
See
I am not sure if we have something that is watching files for these lines to give us stats or something. AI or someting maybe.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
This didn't go with 9.6? 😔 |
…Color() (#27811) * remove excessive UpdateDate() call * adding Ui test * update UItest * adding snapshots * add a static date in test case * match date with snapshots * change preprocessor directive * add comment
…Color() (#27811) * remove excessive UpdateDate() call * adding Ui test * update UItest * adding snapshots * add a static date in test case * match date with snapshots * change preprocessor directive * add comment
…Color() (#27811) * remove excessive UpdateDate() call * adding Ui test * update UItest * adding snapshots * add a static date in test case * match date with snapshots * change preprocessor directive * add comment
…Color() (dotnet#27811) * remove excessive UpdateDate() call * adding Ui test * update UItest * adding snapshots * add a static date in test case * match date with snapshots * change preprocessor directive * add comment
Description of Change
This change removes an unnecessary call to
UpdateDate()fromUpdateTextColor()for iOS.Root Cause
UpdateTextColor()was incorrectly triggeringUpdateDate(), which overrode the expected locale-based date format with the virtual view's default formatFix
UpdateDate()invocation insideUpdateTextColor().UpdateDate().Issues Fixed
Fixes #27803