robloo
a0f70f4b02
Standardize CaptionButtons to Minimize/Maximize spelling
3 years ago
Steven Kirk
4740d0c63a
Get window chrome maximize button by index.
The real Windows Maximize button has no automation ID and is localized. Get it by index instead of by name. The Avalonia one isn't localized so we can get it by name.
3 years ago
Steven Kirk
cdbe84b774
Remove debug code.
3 years ago
Steven Kirk
f8a8c4ab1f
Run check for disabled maximize button on Windows.
And also check with client-side decorations.
3 years ago
Dan Walmsley
4d343293c8
fix test on windows.
3 years ago
Dan Walmsley
c634f11def
really really fix the test.
3 years ago
Dan Walmsley
3ec8888b5d
actually fix the test.
3 years ago
Dan Walmsley
4203bae16d
fix test.
3 years ago
Steven Kirk
16efee95ca
Disambiguate ShowWindowTest controls.
Under the appium-mac2-driver, `FindElementByAccessibilityId` doesn't actually find elements by their accessibility ID, it also finds them by their accessibility name. Since #10531 added an automation peer for `Label` which sets the accessibility name, the wrong control was being located (e.g. it located the "Position" label instead of the `Name="Position"` text box).
Disambiguate these controls by adding a `Current` prefix to make integration tests pass again.
3 years ago
Dan Walmsley
f2bceb40c9
add an integration test.
3 years ago
Steven Kirk
ac882ad3a1
Add failing integration tests for overlay popups.
Integration tests for #10420 :
- Adds an `--overlayPopups` command-line argument to IntegrationTestApp
- Renames `TestAppFixture` -> `DefaultAppFixture`
- Adds additional `OverlayPopupsAppFixture`
- Runs ComboBox and Menu tests in both default and overlay popups mode
- VS keeps changing the `.sln` file
3 years ago
Steven Kirk
044a499db3
Added additional failing integration tests.
3 years ago
Steven Kirk
f417491702
Speed up integration tests.
Don't change combo boxes that are already set to the correct value.
3 years ago
Steven Kirk
2951b80c39
Add additional failing integration tests.
For problems introduced in #10153 .
3 years ago
Steven Kirk
2bbaf74d8f
Fix integration tests on macOS.
Seems that the version of macOS on the test runner applies some shading to the top of the window. Check the color of a pixel lower down.
3 years ago
Steven Kirk
73cede0bf5
Added integration tests for window transparency.
Failing on macOS, passing on win32.
3 years ago
Steven Kirk
003923b50d
Fix integration tests on Windows.
We need to be explicit about which element we're talking about when there are two elements with the same content, and so use accessibility IDs rather than Name.
3 years ago
Steven Kirk
de852142a4
Speed up tests a little.
3 years ago
Steven Kirk
d413fbbb8e
Handle fullscreen windows better on mac.
3 years ago
Steven Kirk
ccf1a35cc9
Child/Modal windows cannot be fullscreen on macOS.
3 years ago
Steven Kirk
9c05066718
Added integration tests for #8869 .
Some tests failing on Win32.
3 years ago
Giuseppe Lippolis
404bb8745e
fix: Warning CS0168 The variable 'e' is declared but never used
4 years ago
Dan Walmsley
6054fa98f1
fix reliability issue in osx window state test.
4 years ago
Dan Walmsley
0bdd0c3160
add a failing integration test.
4 years ago
Steven Kirk
4e63f19a0b
Account for scaling.
4 years ago
Steven Kirk
7156339304
Test CenterOwner window position.
4 years ago
Steven Kirk
267710787e
Tweak tests.
- Add a retry to `GetWindowInfo`
- Owned windows can't go fullscreen on macOS.
4 years ago
Steven Kirk
328aef882b
Added failing tests for WindowState on mac.
4 years ago
Steven Kirk
4f4f291b2d
Move mac-specific tests to a separate file.
And tidy stuff up a bit.
4 years ago
Steven Kirk
8b9e675bd4
Refactor PlatformFact.
To make it inclusive rather than exclusive.
4 years ago
Steven Kirk
8c3424baa4
Refactor OSX window tests a bit.
Try not to rely on `_session.ResetApp();` because restoring the application state in the tests tends to show up more errors (which this change has done: https://github.com/AvaloniaUI/Avalonia/issues/8335#issuecomment-1162804733 )
4 years ago
Steven Kirk
860fcc524d
Refactor how we show windows.
Trying to make it a little less hacky. Only tested on Win32 so far.
4 years ago
Dan Walmsley
a0af269d36
reset app after most tests, add test for fullscreen mode with modal osx.
4 years ago
Dan Walmsley
827692fa27
add test for osx modal dialog window order when clicking resize grip of parent.
4 years ago
Dan Walmsley
1917def959
full set of window tests for osx.
4 years ago
Dan Walmsley
a70dadea18
simplify test.
4 years ago
Dan Walmsley
a7713dcda9
add a unit test for child window order osx.
4 years ago
Dan Walmsley
0d6e3a55f0
add test to show that osx chrome buttons are disabled when modal dialog is opened.
4 years ago
Steven Kirk
4c8240b7bf
Added integration tests for WindowStartupLocation.
4 years ago