Skip to content

Binding Border.StrokeShape stopped working - fix#22558

Merged
PureWeen merged 6 commits into
dotnet:mainfrom
kubaflo:fix-22549
May 22, 2024
Merged

Binding Border.StrokeShape stopped working - fix#22558
PureWeen merged 6 commits into
dotnet:mainfrom
kubaflo:fix-22549

Conversation

@kubaflo
Copy link
Copy Markdown
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
Copy Markdown
Member

@kubaflo is this just a revert?

@kubaflo
Copy link
Copy Markdown
Contributor Author

kubaflo commented May 21, 2024

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

@mattleibow
Copy link
Copy Markdown
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
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@kubaflo
Copy link
Copy Markdown
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
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen merged commit 51bb9a2 into dotnet:main May 22, 2024
@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