Skip to content

Commit 9c369fc

Browse files
committed
Update Appium UI Test sample to .NET 8 template
1 parent aecea8d commit 9c369fc

File tree

6 files changed

+54
-135
lines changed

6 files changed

+54
-135
lines changed

8.0/UITesting/BasicAppiumNunitSample/MauiApp/BasicAppiumNunitSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
<!-- Images -->
4848
<MauiImage Include="Resources\Images\*" />
49-
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
49+
<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
5050

5151
<!-- Custom Fonts -->
5252
<MauiFont Include="Resources\Fonts\*" />

8.0/UITesting/BasicAppiumNunitSample/MauiApp/MainPage.xaml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,34 @@
55

66
<ScrollView>
77
<VerticalStackLayout
8-
Spacing="25"
98
Padding="30,0"
10-
VerticalOptions="Center">
11-
9+
Spacing="25">
1210
<Image
1311
Source="dotnet_bot.png"
14-
SemanticProperties.Description="Cute dot net bot waving hi to you!"
15-
HeightRequest="200"
16-
HorizontalOptions="Center" />
12+
HeightRequest="185"
13+
Aspect="AspectFit"
14+
SemanticProperties.Description="dot net bot in a race car number eight" />
1715

1816
<Label
1917
Text="Hello, World!"
20-
SemanticProperties.HeadingLevel="Level1"
21-
FontSize="32"
22-
HorizontalOptions="Center" />
18+
Style="{StaticResource Headline}"
19+
SemanticProperties.HeadingLevel="Level1" />
2320

2421
<Label
25-
Text="Welcome to .NET Multi-platform App UI"
22+
Text="Welcome to &#10;.NET Multi-platform App UI"
23+
Style="{StaticResource SubHeadline}"
2624
SemanticProperties.HeadingLevel="Level2"
27-
SemanticProperties.Description="Welcome to dot net Multi platform App U I"
28-
FontSize="18"
29-
HorizontalOptions="Center" />
25+
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
3026

31-
<!-- Note that we added the AutomationId attribute -->
27+
<!-- Note that we added the AutomationId attribute -->
3228
<Button
3329
x:Name="CounterBtn"
3430
AutomationId="CounterBtn"
35-
Text="Click me"
31+
Text="Click me"
3632
SemanticProperties.Hint="Counts the number of times you click"
3733
Clicked="OnCounterClicked"
38-
HorizontalOptions="Center" />
39-
34+
HorizontalOptions="Fill" />
4035
</VerticalStackLayout>
4136
</ScrollView>
4237

43-
</ContentPage>
38+
</ContentPage>
68.2 KB
Loading

8.0/UITesting/BasicAppiumNunitSample/MauiApp/Resources/Images/dotnet_bot.svg

Lines changed: 0 additions & 93 deletions
This file was deleted.

8.0/UITesting/BasicAppiumNunitSample/MauiApp/Resources/Styles/Colors.xaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@
77
<!-- Note: For Android please see also Platforms\Android\Resources\values\colors.xml -->
88

99
<Color x:Key="Primary">#512BD4</Color>
10+
<Color x:Key="PrimaryDark">#ac99ea</Color>
11+
<Color x:Key="PrimaryDarkText">#242424</Color>
1012
<Color x:Key="Secondary">#DFD8F7</Color>
13+
<Color x:Key="SecondaryDarkText">#9880e5</Color>
1114
<Color x:Key="Tertiary">#2B0B98</Color>
15+
1216
<Color x:Key="White">White</Color>
1317
<Color x:Key="Black">Black</Color>
18+
<Color x:Key="Magenta">#D600AA</Color>
19+
<Color x:Key="MidnightBlue">#190649</Color>
20+
<Color x:Key="OffBlack">#1f1f1f</Color>
21+
1422
<Color x:Key="Gray100">#E1E1E1</Color>
1523
<Color x:Key="Gray200">#C8C8C8</Color>
1624
<Color x:Key="Gray300">#ACACAC</Color>
@@ -19,11 +27,13 @@
1927
<Color x:Key="Gray600">#404040</Color>
2028
<Color x:Key="Gray900">#212121</Color>
2129
<Color x:Key="Gray950">#141414</Color>
30+
2231
<SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource Primary}"/>
2332
<SolidColorBrush x:Key="SecondaryBrush" Color="{StaticResource Secondary}"/>
2433
<SolidColorBrush x:Key="TertiaryBrush" Color="{StaticResource Tertiary}"/>
2534
<SolidColorBrush x:Key="WhiteBrush" Color="{StaticResource White}"/>
2635
<SolidColorBrush x:Key="BlackBrush" Color="{StaticResource Black}"/>
36+
2737
<SolidColorBrush x:Key="Gray100Brush" Color="{StaticResource Gray100}"/>
2838
<SolidColorBrush x:Key="Gray200Brush" Color="{StaticResource Gray200}"/>
2939
<SolidColorBrush x:Key="Gray300Brush" Color="{StaticResource Gray300}"/>
@@ -32,15 +42,4 @@
3242
<SolidColorBrush x:Key="Gray600Brush" Color="{StaticResource Gray600}"/>
3343
<SolidColorBrush x:Key="Gray900Brush" Color="{StaticResource Gray900}"/>
3444
<SolidColorBrush x:Key="Gray950Brush" Color="{StaticResource Gray950}"/>
35-
36-
<Color x:Key="Yellow100Accent">#F7B548</Color>
37-
<Color x:Key="Yellow200Accent">#FFD590</Color>
38-
<Color x:Key="Yellow300Accent">#FFE5B9</Color>
39-
<Color x:Key="Cyan100Accent">#28C2D1</Color>
40-
<Color x:Key="Cyan200Accent">#7BDDEF</Color>
41-
<Color x:Key="Cyan300Accent">#C3F2F4</Color>
42-
<Color x:Key="Blue100Accent">#3E8EED</Color>
43-
<Color x:Key="Blue200Accent">#72ACF1</Color>
44-
<Color x:Key="Blue300Accent">#A7CBF6</Color>
45-
46-
</ResourceDictionary>
45+
</ResourceDictionary>

0 commit comments

Comments
 (0)