Steven Kirk
23e45beb90
Fix integration tests on macOS.
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
f480455131
Added failing test for #9565 .
And another (passing) test for checking that window order is correct when a child window is shown in fullscreen.
3 years ago
Max Katz
6bd6e9fd29
Reuse PlatformFact on some onplatform tests
4 years ago
Dan Walmsley
07f6a43128
fix integration tests.
4 years ago
Dan Walmsley
9311d88a26
fix gesture tests on macos
4 years ago
Dan Walmsley
ad574e2c64
use net 7 for integration test app.
4 years ago
Steven Kirk
2337d20df1
Add failing test for #8733 .
4 years ago
Steven Kirk
dbd1ac3af6
Fix DoubleTapped integration test.
`DoubleTapped` is raised on second pointer press, not release.
4 years ago
Steven Kirk
9a50b9ee0c
Added integration tests for tapped gestures.
Some skipped on Windows as right button actions aren't supported by WinAppDriver.
4 years ago
Steven Kirk
de852142a4
Speed up tests a little.
4 years ago
Steven Kirk
d413fbbb8e
Handle fullscreen windows better on mac.
4 years ago
Steven Kirk
ccf1a35cc9
Child/Modal windows cannot be fullscreen on macOS.
4 years ago
Dan Walmsley
95ad8cc324
try and make test more reliable.
4 years ago
Steven Kirk
9c05066718
Added integration tests for #8869 .
Some tests failing on Win32.
4 years ago
Steven Kirk
1c4a994e2c
Add failing test for #8878 .
And update the tests to use the value of `NSWindow.orderedIndex` exposed in 0cc0443d34 instead of relying on appium to give us a z-ordered list of windows.
4 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
Steven Kirk
eb8ddef412
Add failing integration test on macOS.
Hiding a child window, and then clicking on the parent window causes the child window to be erroneously re-shown.
4 years ago
Steven Kirk
fcef065908
Fix flaky menu integration tests.
Move the mouse pointer out of the way of the menu when running integration tests on menu keys.
4 years ago
Dan Walmsley
a9cc499de3
Revert "disable broken tests."
This reverts commit 5fcc5ecfea .
4 years ago
Dan Walmsley
5fcc5ecfea
disable broken tests.
4 years ago
Dan Walmsley
0bdd0c3160
add a failing integration test.
4 years ago
Dan Walmsley
ac30a64d78
dont use window size that could go off screen.
4 years ago
Dan Walmsley
e8914c966d
reliably replace old bundle.
4 years ago
Dan Walmsley
c3bb062a37
ensure bundle id is registered.
4 years ago
Dan Walmsley
5d69d1648d
run appium and restart it each time.
4 years ago
Dan Walmsley
d59c9feac9
make sure any existing instances are closed.
4 years ago
Dan Walmsley
e0c1bae842
use pkill to close app.
4 years ago
Dan Walmsley
7746b79fb5
close app after running
4 years ago
Dan Walmsley
92bdf1cce5
install the integration sample app
4 years ago
Steven Kirk
cebd5b169d
Added script to run automation tests on macOS.
4 years ago
Steven Kirk
4e63f19a0b
Account for scaling.
4 years ago
Steven Kirk
91fc1335a0
Sigh, winappdriver.
4 years ago
Steven Kirk
7156339304
Test CenterOwner window position.
4 years ago
Steven Kirk
4f84950c41
Added tests for #8335 .
4 years ago
Steven Kirk
19c55102e5
Use manual window startup location in macOS tests.
Seems to cause less flaky tests; `mainWindow.Click()` clicks the main window in the middle, where the secondary window is shown, so don't go out of our way to put the secondary window in front of where we're clicking.
4 years ago
Steven Kirk
cd04964c85
Added a retry to macOS window tests.
MacOS sometimes seems to need a bit of time to get itself back in order after switching out of fullscreen.
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