-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathIssue33783.cs
More file actions
34 lines (29 loc) · 894 Bytes
/
Issue33783.cs
File metadata and controls
34 lines (29 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;
namespace Microsoft.Maui.TestCases.Tests.Issues;
public class Issue33783 : _IssuesUITest
{
public Issue33783(TestDevice testDevice) : base(testDevice)
{
}
public override string Issue => "Switch ThumbColor not applied correctly when theme changes on iOS";
[Test, Order(0)]
[Category(UITestCategories.Switch)]
public async Task VerifySwitchThumbColorOnDarkThemeChange()
{
App.WaitForElement("DarkThemeButton");
App.Tap("DarkThemeButton");
await Task.Delay(500);
VerifyScreenshot("Issue33783_SwitchThumbColor_DarkTheme");
}
[Test, Order(1)]
[Category(UITestCategories.Switch)]
public async Task VerifySwitchThumbColorOnLightThemeChange()
{
App.WaitForElement("LightThemeButton");
App.Tap("LightThemeButton");
await Task.Delay(500);
VerifyScreenshot("Issue33783_SwitchThumbColor_LightTheme");
}
}