Skip to content

Commit f88679a

Browse files
prakashKannanSf3972PureWeen
authored andcommitted
Fixed-CV2-Failing (#29423)
1 parent 2300057 commit f88679a

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/Controls/tests/TestCases.HostApp/Issues/Issue28930.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
<Label Text="CAROUSEL"
1313
TextTransform="Uppercase" />
1414
<!--https://github.com/dotnet/maui/issues/29402 -->
15-
<local:CarouselView1 x:Name="MyCarousel"
15+
<CarouselView x:Name="MyCarousel"
1616
AutomationId="MyCarousel"
1717
HorizontalOptions="Fill"
1818
VerticalOptions="Start"
1919
MinimumHeightRequest="120"
2020
HeightRequest="140"
2121
HorizontalScrollBarVisibility="Never"
2222
EmptyView="No data">
23-
<local:CarouselView1.ItemsSource>
23+
<CarouselView.ItemsSource>
2424
<x:Array Type="{x:Type x:String}">
2525
<x:String>Item 1</x:String>
2626
<x:String>Item 2</x:String>
2727
<x:String>Item 3</x:String>
2828
</x:Array>
29-
</local:CarouselView1.ItemsSource>
30-
<local:CarouselView1.ItemTemplate>
29+
</CarouselView.ItemsSource>
30+
<CarouselView.ItemTemplate>
3131
<DataTemplate>
3232
<Grid ColumnDefinitions="*,*,*,*"
3333
RowDefinitions="*,Auto">
@@ -140,8 +140,8 @@
140140
</Grid>
141141
</Grid>
142142
</DataTemplate>
143-
</local:CarouselView1.ItemTemplate>
144-
</local:CarouselView1>
143+
</CarouselView.ItemTemplate>
144+
</CarouselView>
145145
</VerticalStackLayout>
146146
</Border>
147147
</VerticalStackLayout>

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue28523.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@ public void CarouselViewItemShouldScaleProperly()
2121
App.WaitForElement("Baboon");
2222
VerifyScreenshot();
2323
}
24+
25+
[TearDown]
26+
public void TearDown()
27+
{
28+
App.SetOrientationPortrait();
29+
}
2430
}
2531
#endif

0 commit comments

Comments
 (0)