|
|
@ -3,6 +3,7 @@ using System.Runtime.InteropServices; |
|
|
using System.Threading; |
|
|
using System.Threading; |
|
|
using Avalonia.Controls; |
|
|
using Avalonia.Controls; |
|
|
using OpenQA.Selenium.Appium; |
|
|
using OpenQA.Selenium.Appium; |
|
|
|
|
|
using OpenQA.Selenium.Interactions; |
|
|
using Xunit; |
|
|
using Xunit; |
|
|
using Xunit.Sdk; |
|
|
using Xunit.Sdk; |
|
|
|
|
|
|
|
|
@ -87,8 +88,9 @@ namespace Avalonia.IntegrationTests.Appium |
|
|
Assert.Equal("Fullscreen", windowState.GetComboBoxValue()); |
|
|
Assert.Equal("Fullscreen", windowState.GetComboBoxValue()); |
|
|
|
|
|
|
|
|
current = GetWindowInfo(); |
|
|
current = GetWindowInfo(); |
|
|
Assert.True(current.ClientSize.Width >= current.ScreenRect.Width); |
|
|
var clientSize = PixelSize.FromSize(current.ClientSize, current.Scaling); |
|
|
Assert.True(current.ClientSize.Height >= current.ScreenRect.Height); |
|
|
Assert.True(clientSize.Width >= current.ScreenRect.Width); |
|
|
|
|
|
Assert.True(clientSize.Height >= current.ScreenRect.Height); |
|
|
|
|
|
|
|
|
windowState.Click(); |
|
|
windowState.Click(); |
|
|
_session.FindElementByName("Normal").SendClick(); |
|
|
_session.FindElementByName("Normal").SendClick(); |
|
|
|