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

[UITest] Remove the bottom section of iOS UITest #24586

Merged
merged 10 commits into from
Oct 4, 2024

Conversation

tj-devel709
Copy link
Member

@tj-devel709 tj-devel709 commented Sep 3, 2024

Description of Change

The Home Indicator Bar on iOS Screenshots for the UITests can be a little inconsistent at times. Since we cannot fully remove the home indicator bar, let's crop out the bottom portion of these screenshots.

@tj-devel709 tj-devel709 added platform/iOS 🍎 area-testing Unit tests, device tests labels Sep 3, 2024
@tj-devel709 tj-devel709 force-pushed the dev/TJ/RemoveBottomiOSUITest branch from 8e81524 to 8791b7e Compare September 4, 2024 22:00
@tj-devel709
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@tj-devel709 tj-devel709 force-pushed the dev/TJ/RemoveBottomiOSUITest branch from 8b21d93 to c784774 Compare September 9, 2024 14:45
@PureWeen PureWeen force-pushed the dev/TJ/RemoveBottomiOSUITest branch from c784774 to c026155 Compare October 3, 2024 18:12
@PureWeen PureWeen marked this pull request as ready for review October 3, 2024 19:09
@PureWeen PureWeen requested a review from a team as a code owner October 3, 2024 19:09
@PureWeen
Copy link
Member

PureWeen commented Oct 3, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen
Copy link
Member

PureWeen commented Oct 3, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@rmarinho
Copy link
Member

rmarinho commented Oct 4, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@rmarinho rmarinho merged commit 979ad02 into main Oct 4, 2024
97 checks passed
@rmarinho rmarinho deleted the dev/TJ/RemoveBottomiOSUITest branch October 4, 2024 13:13
@samhouts samhouts added fixed-in-net9.0-nightly This may be available in a nightly release! fixed-in-net8.0-nightly This may be available in a nightly release! labels Oct 14, 2024
rmarinho added a commit that referenced this pull request Oct 16, 2024
* add bottom screenshot crop

* increase crop by 2

* make it 40

* wave 1 of screenshots

* wave 2 of screenshots

* new screenshots 3

* new screenshots 4

* new screenshots 5

* - additional updates

* Add more updated images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
rmarinho added a commit that referenced this pull request Oct 16, 2024
* add bottom screenshot crop

* increase crop by 2

* make it 40

* wave 1 of screenshots

* wave 2 of screenshots

* new screenshots 3

* new screenshots 4

* new screenshots 5

* - additional updates

* Add more updated images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
@rmarinho
Copy link
Member

/backport to release/9.0.1xx

Copy link
Contributor

Started backporting to release/9.0.1xx: https://github.com/dotnet/maui/actions/runs/11390807488

Copy link
Contributor

@rmarinho backporting to release/9.0.1xx failed, the patch most likely resulted in conflicts:

$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: add bottom screenshot crop
Applying: increase crop by 2
Applying: make it 40
Applying: wave 1 of screenshots
warning: Cannot merge binary files: src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/UpdateCollectionViewHeaderTest.png (HEAD vs. wave 1 of screenshots)
Using index info to reconstruct a base tree...
M	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/UpdateCollectionViewHeaderTest.png
Falling back to patching base and 3-way merge...
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/VerifyButtonPage8_End.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/VerifyButtonPage8_Center.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/VerifyButtonPage1_Border.png
Auto-merging src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/UpdateCollectionViewHeaderTest.png
CONFLICT (content): Merge conflict in src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/UpdateCollectionViewHeaderTest.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/SettingMaximumTrackColorOnSliderWorks-iOS-UITestBaseTearDown-ScreenShot-0b04d693dcdb426aa0e39747f469b61d.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/LabelUITests_FontFamily_Ionicons.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/Issue22606_SetHeightTo500.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/Issue22433_Spacing.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/Issue22433_Layout.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/Issue18751Test.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/Issue18242Test.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ImageUITests_Source_FontImageSource_Ionicons.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ImageUITests_IsAnimationPlaying_Yes.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ImageButtonUITests_Padding_Removed.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ImageButtonUITests_Padding_Add_Added.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ImageButtonUITests_Aspect_State_Fill.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ImageButtonUITests_Aspect_State_Center.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ImageButtonUITests_Aspect_State_AspectFill.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ButtonsLayoutResolveWhenParentSizeChangesSizeButtonsDownPortrait.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ButtonsLayoutResolveWhenParentSizeChangesSizeButtonsDownLandscape.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ButtonsLayoutResolveWhenParentSizeChangesOriginal2.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ButtonLayoutResizesWithImagePositionRight.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ButtonLayoutResizesWithImagePositionLeft.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ButtonLayoutResizesWithImagePositionBottom.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/BorderWidthAffectsTheImageSizingBorderWidth.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/BindingOnStrokeShapeWithoutRadius.png
Removing src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/AppThemeShouldChangeLightTheme.png
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0004 wave 1 of screenshots
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

@rmarinho an error occurred while backporting to release/9.0.1xx, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

PureWeen pushed a commit that referenced this pull request Oct 17, 2024
* add bottom screenshot crop

* increase crop by 2

* make it 40

* wave 1 of screenshots

* wave 2 of screenshots

* new screenshots 3

* new screenshots 4

* new screenshots 5

* - additional updates

* Add more updated images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
# Conflicts:
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ImageSourceInitializesCorrectly.png
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/TextsInEditorsAfterScaling.png
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/TextsInEditorsBeforeScaling.png
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/UpdateCollectionViewHeaderTest.png
PureWeen pushed a commit that referenced this pull request Oct 18, 2024
* add bottom screenshot crop

* increase crop by 2

* make it 40

* wave 1 of screenshots

* wave 2 of screenshots

* new screenshots 3

* new screenshots 4

* new screenshots 5

* - additional updates

* Add more updated images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
# Conflicts:
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ImageSourceInitializesCorrectly.png
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/TextsInEditorsAfterScaling.png
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/TextsInEditorsBeforeScaling.png
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/UpdateCollectionViewHeaderTest.png
PureWeen added a commit that referenced this pull request Oct 18, 2024
* [UITest] Remove the bottom section of iOS UITest (#24586)

* add bottom screenshot crop

* increase crop by 2

* make it 40

* wave 1 of screenshots

* wave 2 of screenshots

* new screenshots 3

* new screenshots 4

* new screenshots 5

* - additional updates

* Add more updated images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
# Conflicts:
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ImageSourceInitializesCorrectly.png
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/TextsInEditorsAfterScaling.png
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/TextsInEditorsBeforeScaling.png
#	src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/UpdateCollectionViewHeaderTest.png

* - Update corrected images

* - fix tabs

* - fix ipad

* - fix indent

---------

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2024
@samhouts samhouts added fixed-in-9.0.10 fixed-in-net8.0-nightly This may be available in a nightly release! and removed fixed-in-net9.0-nightly This may be available in a nightly release! fixed-in-net8.0-nightly This may be available in a nightly release! labels Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing Unit tests, device tests fixed-in-9.0.10 fixed-in-net8.0-nightly This may be available in a nightly release! platform/iOS 🍎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants