Skip to content
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

Binding Border.StrokeShape stopped working - fix #22558

Merged
merged 6 commits into from
May 22, 2024

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented May 21, 2024

Fixes #22549

Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-05-21.at.20.44.52.mp4

@kubaflo kubaflo requested a review from a team as a code owner May 21, 2024 18:42
@kubaflo kubaflo requested review from jfversluis and tj-devel709 May 21, 2024 18:42
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label May 21, 2024
@mattleibow
Copy link
Member

@kubaflo is this just a revert?

@kubaflo
Copy link
Contributor Author

kubaflo commented May 21, 2024

@mattleibow it is not a revert but a small correction to this: #21197 (comment)

@mattleibow
Copy link
Member

Ah, nice.

I wonder if it is worth adding a test that when you click a button the border changes to a width and then back again to make sure that updates/bindings can set it back to 0.

For example, assume you have a bindable property that changes at runtime. Theoretically going from 0, screenshot, 1, 0, screenshot should have the same result.

Similarly, maybe add a new test for the corner radius. This should have been caught by CI, so we got some holes in our testing.

@mattleibow
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@kubaflo
Copy link
Contributor Author

kubaflo commented May 21, 2024

@mattleibow I've added tests :) Feel free to add more if you have something more in mind

@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Member

@mattleibow mattleibow left a comment

Choose a reason for hiding this comment

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

The tests are great! Love the Xaml one too.

Just a comment on the screenshot filename.

App.Click("button");

//The test passes if border radius is equal to 0
VerifyScreenshot();
Copy link
Member

Choose a reason for hiding this comment

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

These may need to have a custom filename since they are different.

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, added different names.

@dotnet dotnet deleted a comment from azure-pipelines bot May 22, 2024
@dotnet dotnet deleted a comment from azure-pipelines bot May 22, 2024
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen merged commit 51bb9a2 into dotnet:main May 22, 2024
49 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 24, 2024
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.

Binding Border.StrokeShape stopped working in 8.0.60-ci.net8.10665
6 participants