Commit Graph

53 Commits

Author SHA1 Message Date
mmdi 25f57fa41f first moti commit 2026-04-14 03:20:40 +03:30
Melissa d2817201cb Added LandmarkType to automation properties (#20134)
* Added LandmarkType to automation properties

* Set AutomationProperties.AccessibilityView on Main landmark in IntegrationTestApp, which is required for Narrator to find the landmark

* Implement AXRoleDescription as suggested by W3C

* Fixed wrong role descriptions
2025-11-26 14:49:28 +00:00
Steven Kirk fa8b1736de Refactor integration test app paging (#16551)
* Refactor IntegrationTestApp.

Use a `ListBox` to switch pages instead of a `TabControl`: the `TabControl` didn't adapt well to smaller screen sizes, and the `MainWindow` was getting unwieldy anyway.

* Update tests to use new pager.

Move logic for selecting the page to a base class as we may need to handle scrolling manually on macOS at some point (Appium on macOS doesn't scroll elements into view automatically).

* Add AutomationPeer.IsOffscreen.

This is needed in order for controls to be scrolled into view using WinAppDriver. The default is the same as WPF and the default value is overridden in the same controls as WPF (where present).
2024-08-03 08:56:12 +00:00
Steven Kirk 0e869730a3 Fix context menu keyboard selection. (#16354)
When opening a context menu and pressing the "arrow down" key, the first menu item was not selected. This issue was introduced by #11287. The fix is to make the `ContextMenu` focusable.

Added an integration test to try to prevent regressions.

Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-07-20 21:15:49 +00:00
Max Katz 05ac6d2f1d Screens API refactor (#16295)
* Draft new API

* Push reusable ScreensBaseImpl implementation

* Fix tests and stubs

* Update ScreensPage sample to work on mobile + show new APIs

* Reimplement Windows ScreensImpl, reuse existing screens in other places of backend, use Microsoft.Windows.CsWin32 for interop

* Make X11 project buildable, don't utilize new APIs yet

* Reimplement macOS Screens API, differenciate screens by CGDirectDisplayID

* Fix build

* Adjust breaking changes file (none affect users)

* Fix missing macOS Screen.DisplayName

* Add more tests + fix screen removal

* Add screens integration tests

* Use hash set with comparer when removing screens

* Make screenimpl safer on macOS as per review

* Replace UnmanagedCallersOnly usage with source generated EnumDisplayMonitors

* Remove unused dllimport

* Only implement GetHashCode and Equals on PlatformScreen subclass, without changing base Screen
2024-07-16 15:48:18 -07:00
Max Katz ad0bc0dabf TrayIcon integration tests (#16154)
* Add accessibility ID to the TrayPopupRoot on Windows

* [Windows] Add left click and menu item click e2e tests for TrayIcon

* [Windows] Add TrayIcon visibility toggle tests

* Implement macOS tray icon tests

* Make it easier to read tray icon logs

* Try to handle win10 accessibility names

* Try to upload PageSource

* Set condition: always

* Hopefully, it works on CI

* Try to upload PageSource #2

* Fix win10, hopefully for the last time
2024-07-08 19:44:15 -04:00
Steven Kirk ae44889370 [macOS][X11] Release mouse capture when dialog shown (#16205)
* Added integration test for #14525.

* Release mouse capture when dialog shown.

Fixes #14525.

* Release X11 pointer capture when dialog shown.
2024-07-03 07:36:08 +00:00
Max Katz d4d322654e [Windows] WindowDecorations related integration tests (#15561)
* Enable IncludeAvaloniaGenerators on integartion tests app

* Implement basic TitleBarAutomationPeer

* Add WindowDecorationsTests (windows only for now)

* Implement window decoration tests on macOS

* Fix build on appium 1

* Fix some windows tests

* Extract WindowDecorationsTests into a separated collection, so it won't conflict

* Fix build

* Fix build
2024-06-27 23:41:49 -04:00
Emmanuel Hansen fc26fb6608 Win32 - Ensure owner topmost flag is set if its topmost when showing a owned window (#16104)
* ensure owner topmost flag is set if its topmost when showing a owned window

* add comments on why HWND_TOPMOST is set again

* add Topmost with owned window integration tests

* fix tests
2024-06-26 12:11:44 +00:00
Dan Walmsley 89efb4fcc4 Add icon and trayicon to the integration test app, so that loading icons will be tests. (#14593)
Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-02-15 05:47:18 +00:00
Steveice10 6f0bfbf3aa Exclude access key markers from native menu titles on macOS. (#13338)
* Add integration test for access key indicators in macOS menu bar titles.

Tests for access key indicators displaying as plain underscores in macOS menu bar items.

* Exclude access key markers from native menu titles on macOS.

macOS does not support access key markers, so they just display as extra underscores.
2023-10-23 03:11:37 +00:00
Steven Kirk c7db3bfee7 Added failing test for #11370. 2023-05-20 16:06:25 +02:00
Steven Kirk 576014db05 Improve slider integration tests.
They are now failing due to #11015.
2023-04-18 11:02:51 +02:00
Dan Walmsley 978c539b0e Merge pull request #10677 from AvaloniaUI/fixes/10650-extend-client-area-decorations
macOS: Fix interaction between ExtendClientAreaToDecorationsHint and SystemDecorations
2023-03-16 21:48:06 +00:00
Dan Walmsley 70330b5832 Merge pull request #10604 from AvaloniaUI/feature/itemssource-update-usages
Update usages of ItemsControl Items/ItemsSource
2023-03-16 16:34:06 +00:00
Steven Kirk 9845dfadef Add system decorations and extend client area opts 2023-03-13 21:30:51 +01:00
Steven Kirk f8eceb4af9 Update usages of ItemsControl Items/ItemsSource.
- Use `ItemsSource` when appropriate
- When `Items` is appropriate, don't use the setter
2023-03-08 16:18:36 +01:00
Daniil Pavliuchyk ddb9669c11 Add ScrollBarAutomationPeer 2023-03-03 14:02:15 +02:00
Steven Kirk c0e1786b92 Merge branch 'master' into fixes/10420-overlay-popups-event-routing 2023-02-23 18:24:24 +01:00
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
2023-02-23 14:08:11 +01:00
Daniil Pavliuchyk 8a771855db Add tests 2023-02-22 15:41:30 +02:00
Steven Kirk 1895e25c3e Merge branch 'master' into slider-automationPeer 2023-02-16 19:02:21 +01:00
Daniil Pavliuchyk 44b833a0af Fix test 2023-02-15 15:20:05 +02:00
Steven Kirk efea5e7ef2 Merge branch 'master' into fixes/macos-noresize-fullscreen 2023-02-14 19:38:57 +01:00
Daniil Pavliuchyk ac21ab2fe6 Add Slider Automation Test 2023-02-14 15:06:13 +02:00
Steven Kirk 035f4f0e55 Added failing integration tests for #10232. 2023-02-09 12:02:18 +01:00
Steven Kirk 571b7746ea Added failing integration test. 2023-02-04 21:26:37 +01:00
Steven Kirk 73cede0bf5 Added integration tests for window transparency.
Failing on macOS, passing on win32.
2023-02-03 13:24:12 +01:00
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.
2022-12-06 11:42:37 +01:00
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.
2022-11-29 12:39:24 +01:00
Steven Kirk 3a550fac30 Merge branch 'master' into fixes/8869-show-windowstate 2022-11-17 15:43:55 +01:00
Max Katz fa0cea97fe Enable compiled bindings by default and fix all the usages + adjust some namespaces 2022-11-15 02:01:56 -05:00
Steven Kirk c733950aff Refactor gestures tab in IntegrationTestApp. 2022-11-04 10:09:33 +01:00
Steven Kirk 9a50b9ee0c Added integration tests for tapped gestures.
Some skipped on Windows as right button actions aren't supported by WinAppDriver.
2022-11-03 15:36:02 +01:00
Steven Kirk 9c05066718 Added integration tests for #8869.
Some tests failing on Win32.
2022-10-18 09:28:37 +02:00
Steven Kirk 4f84950c41 Added tests for #8335. 2022-06-27 21:33:26 +02:00
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)
2022-06-22 10:36:49 +02:00
Dan Walmsley b7397a7cdf add a11y identifiers for windows. 2022-06-01 17:56:36 +01:00
Steven Kirk 4c8240b7bf Added integration tests for WindowStartupLocation. 2022-05-30 11:57:13 +02:00
Steven Kirk 5d35ac324f Additional menu integration tests. 2022-04-09 01:53:57 +02:00
Steven Kirk 69f96d5b44 Added failing integration test for #7906. 2022-04-09 00:13:17 +02:00
Steven Kirk 261f46ea74 Added a few ListBox tests. 2021-11-23 10:42:35 +01:00
Steven Kirk 26137caaca Trying to get stuff working on macOS.
Man, appium for mac sucks.
2021-11-22 14:59:41 +01:00
Steven Kirk ddb6ab977e Refactored ComboBox integration tests. 2021-11-22 14:25:37 +01:00
Steven Kirk 742d960874 Remove rogue character. 2021-11-21 22:13:38 +01:00
Steven Kirk f6e06a6d15 Refactored Menu integration tests. 2021-11-21 17:38:40 +01:00
Steven Kirk 610ef6f467 Added a NativeMenu test for macOS. 2021-11-21 16:52:13 +01:00
Steven Kirk 06ed896317 Added access/accelerator key support.
And start adding integration tests for menu items.
2021-03-11 21:27:48 +01:00
Steven Kirk 8b642a9141 Implemented LabeledBy. 2021-03-11 16:28:48 +01:00
Steven Kirk 651106aed3 Use Name for AutomationId. 2021-03-11 15:29:41 +01:00