-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[iOS] DatePicker | Remove unnecessary UpdateDate() call in UpdateTextColor() #27811
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
[iOS] DatePicker | Remove unnecessary UpdateDate() call in UpdateTextColor() #27811
Conversation
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DatePicker seems inconsistent on Mac. The TextColor property definitely isn't working. Check #20904
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.
Are you able to wrap the whole file with a #if TEST_FAILS_ON_CATALYST
?
See
#if TEST_FAILS_ON_CATALYST // This test fails on catalyst, unable to click the back button as its does not have an identifier. |
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). |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you able to wrap the whole file with a #if TEST_FAILS_ON_CATALYST
?
See
#if TEST_FAILS_ON_CATALYST // This test fails on catalyst, unable to click the back button as its does not have an identifier. |
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() (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
…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
…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