Skip to content

[iOS] Write device test to validate CharacterSpacing changes #13361

@rmarinho

Description

@rmarinho

Description

When fixing #10293 I wanted to add a device test to see if the Button size changes after CharacterSpacing changing, but I wasn't able to getting it working.

Creating this issue to track and look at adding the test again when I have more time, or someone else as a good idea how to do it.

what I was trying :

[Yesterday 17:07] Rui Marinho
await InvokeOnMainThreadAsync(async () =>
{
        var handler = CreateHandler(button);
         await handler.PlatformView.AttachAndRun(async () =>
         {
                    var initialFrame = handler.PlatformView.Bounds;
                    button.CharacterSpacing = xplatCharacterSpacing;                             
                    await Task.Delay(1000);
                    var afterFrame = handler.PlatformView.Bounds;
                    Assert.True(afterFrame.Width > initialFrame.Width);
          });
});

Steps to Reproduce

Try add test above

Link to public reproduction project repository

none

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

all

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

Taskneither bug nor feature but something that needs to be done in support of eitherarea-testingUnit tests, device testsfixed-in-8.0.0-rc.1.9171Look for this fix in 8.0.0-rc.1.9171platform/ios

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions