uno icon indicating copy to clipboard operation
uno copied to clipboard

Fix gradient foreground on Wasm

Open Youssef1313 opened this issue 4 years ago • 26 comments

GitHub Issue (If applicable): closes #7206

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

image

What is the new behavior?

image

NOTE: Run behavior is still incorrect.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

Youssef1313 avatar Sep 27 '21 08:09 Youssef1313

gitpod-io[bot] avatar Sep 27 '21 08:09 gitpod-io[bot]

Supporting runs as in UWP seems to be tricky to me. I think it's not an important scenario right now. @carldebilly Let me know if it's worth opening an issue for it or just ignore it for now?

Youssef1313 avatar Sep 27 '21 17:09 Youssef1313

The added test is likely to fail on other platforms. It may get fixed with https://github.com/unoplatform/uno/pull/7188. So I'm keeping as a draft until #7188 is merged

Youssef1313 avatar Sep 27 '21 17:09 Youssef1313

@Youssef1313 Is there something missing for this PR to go through?

carldebilly avatar Feb 05 '22 02:02 carldebilly

@carldebilly #7188 Needs to go first for tests to pass.

Youssef1313 avatar Feb 05 '22 03:02 Youssef1313

@jeromelaban @MartinZikmund Looks like failures are unrelated to the change? Can you restart the failing checks please? Thanks!

Youssef1313 avatar Aug 21 '22 05:08 Youssef1313

/azp run

MartinZikmund avatar Aug 21 '22 14:08 MartinZikmund

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Aug 21 '22 14:08 azure-pipelines[bot]

One failure looks related to the change. I'm going to fix that now.

Youssef1313 avatar Aug 21 '22 17:08 Youssef1313

@jeromelaban Can we try restarting the failing checks here? Thanks!

Youssef1313 avatar Aug 21 '22 20:08 Youssef1313

/azp run

jeromelaban avatar Aug 26 '22 13:08 jeromelaban

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Aug 26 '22 13:08 azure-pipelines[bot]

@Youssef1313 I re-run only the failing ones, when it's done maybe you can double check after if there are still some issues left ;) (cc @jeromelaban)

agneszitte avatar Sep 09 '22 15:09 agneszitte

I'm not sure our behavior for IsTextSelectionEnabled is correct in the first place. Will discuss with @MartinZikmund. Converting this PR to a draft until we conclude what should be done, and thanks @agneszitte-nventive for the reminder on this PR!

Youssef1313 avatar Sep 10 '22 08:09 Youssef1313

@carldebilly Can you take a look please? Thanks!

Youssef1313 avatar Sep 13 '22 08:09 Youssef1313

Let's check the screenshots differences first.

jeromelaban avatar Sep 13 '22 12:09 jeromelaban

@jeromelaban Looks like it's not run, probably because some UI Tests failed? I'm not sure whether the failures are related, could you restart please? Thanks!

Youssef1313 avatar Sep 13 '22 13:09 Youssef1313

/azp run

agneszitte avatar Sep 13 '22 19:09 agneszitte

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Sep 13 '22 19:09 azure-pipelines[bot]

@jeromelaban Looks like it's not run, probably because some UI Tests failed? I'm not sure whether the failures are related, could you restart please? Thanks!

I restarted the build @Youssef1313 ;)

agneszitte avatar Sep 13 '22 19:09 agneszitte

~~The tests that are failing in CI are passing locally for me~~

image

~~Probably it's worth another restart?~~

Ops, sorry, was on different branch. Will re-test

Youssef1313 avatar Sep 14 '22 15:09 Youssef1313

Confirmed test failures happen locally. Will take a look to try understanding what's happening.

Youssef1313 avatar Sep 14 '22 15:09 Youssef1313

When_Composite_UITests_Shared_Windows_UI_Xaml_Media_Transform_Basics_Automated

When_Composite_When_Composite_-_Tear_down_on_error

There is a small shift somewhere between the two images (I got one from passing CI on master and one from CI in this PR), though it's hard for me to tell whether this difference is acceptable or why it's even happening.

@carldebilly Is this something you could take a look at?

Youssef1313 avatar Sep 14 '22 19:09 Youssef1313

I guess I understand what's happening now.

There is an empty TextBlock below the one that reads "DESCRIPTION" which used to have a height, but it's now zero height. It looks like I no longer hit this code path for this case:

https://github.com/unoplatform/uno/blob/c54390605409206659b7d4e32331eebe12693ed6/src/Uno.UI/UI/Xaml/UIElement.TextHelper.wasm.cs#L18-L38

Youssef1313 avatar Sep 14 '22 21:09 Youssef1313

I hope it passes this time :)

Youssef1313 avatar Sep 14 '22 22:09 Youssef1313

@jeromelaban This is ready for review.

Youssef1313 avatar Sep 15 '22 12:09 Youssef1313