Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Uno.UITest.Helpers/AppInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ private static IApp CreateBrowserApp(bool alreadyRunningApp)

_currentApp = configurator
.ScreenShotsPath(TestContext.CurrentContext.TestDirectory)
.WindowSize(TestEnvironment.WebAssemblyBrowserSize.Width, TestEnvironment.WebAssemblyBrowserSize.Height)
.StartApp();

return _currentApp;
Expand Down
8 changes: 7 additions & 1 deletion src/Uno.UITest.Helpers/AppInitializerEnvironment.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Uno.UITest.Helpers.Queries;
using System.Drawing;
using Uno.UITest.Helpers.Queries;

namespace Uno.UITests.Helpers
{
Expand Down Expand Up @@ -66,5 +67,10 @@ internal AppInitializerEnvironment()
/// Note that all browser does not supports all options defined here. For instance Edge does support only the <see cref="SeleniumDriverPath"/>.
/// </remarks>
public Browser WebAssemblyBrowser { get; set; } = Browser.Chrome;

/// <summary>
/// Defines the browser size for the Web platform
/// </summary>
public Size WebAssemblyBrowserSize { get; set; } = new Size(1024, 768);
}
}