Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] [UWP] Fix FontIcons alignment #15047

Merged
merged 5 commits into from
Jan 26, 2022
Merged

Conversation

tonyhallett
Copy link
Contributor

Description of Change

Correct icon positioning

Issues Resolved

API Changes

None

None

Platforms Affected

  • UWP

Behavioral/Visual Changes

Changes to being correctly positioned

Before/After Screenshots

Cannot do as doing pull request in browser.

Testing Procedure

Cannot test.

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

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

@jfversluis jfversluis changed the title Update FontImageSourceHandler.cs [Bug] [UWP] Fix FontIcons alignment Jan 14, 2022
@jfversluis
Copy link
Member

jfversluis commented Jan 14, 2022

/azp run

@azure-pipelines

This comment has been minimized.

@jfversluis
Copy link
Member

Thank you so much for taking the time to contribute this @tonyhallett ! Like Javier said; if you could add a little sample to demonstrate that would be awesome. This way it's easier for us to verify the fix now and in the future for possible regressions. Thanks!

@tonyhallett
Copy link
Contributor Author

I will see if can screenshot and assert pixels.

@jfversluis
Copy link
Member

If you look at the Control Gallery project there are a lot of pages describing issues. Just a button or anything with a font icon on it that would be not properly aligned before this fix, but is properly aligned now will do :)

@tonyhallett
Copy link
Contributor Author

@jfversluis Yes I saw a recent example that just added a control with a radial gradient. Is there snapshot testing occurring from these UI tests ?

@jfversluis
Copy link
Member

UI tests run through App Center where we have the possibility to look at screenshots yes. Or we run some things manually for manual verification :)

@tonyhallett
Copy link
Contributor Author

@jfversluis

Should I be creating screenshots ?
I did have the code below

#if UITEST 
using NUnit.Framework; using Xamarin.UITest; 
#endif 

#if UITEST 
[Test] public void ShouldHorizontallyCenterFontIcons() { 
RunningApp.WaitForElement(contentAutomationId); 
RunningApp.AttachScreenshotToTestContext("GithubIssue606"); } 
#endif

but If I ran the test from Visual Studio Test Explorer the init method was not called. Perhaps you can advise on that.

UI tests run through App Center where we have the possibility to look at screenshots yes. Or we run some things manually for manual verification :)

If I add a screenshot is there an automated test that will check future pull requests do not cause a regression ?

@azure-pipelines

This comment has been minimized.

@jfversluis
Copy link
Member

but If I ran the test from Visual Studio Test Explorer the init method was not called. Perhaps you can advise on that.

That is correct, this will run as a UI test rather than a unit test :)

Had a quick look and made some minor adjustments but other than that this seems good! Thanks!

@azure-pipelines

This comment has been minimized.

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [UWP] FontIcons are not aligned correctly
3 participants