Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make integrational tests compatible with Appium 2 #15570

Merged
merged 5 commits into from
Apr 30, 2024

Conversation

maxkatz6
Copy link
Member

What does the pull request do?

For some reason, Appium 1 doesn't work anymore on some dev's machines, including me.
Since we can't really fully migrate to Appium 2 because of WinAppDriver being dead, we have to sit on two chairs at once.
This PR adds a MSBuild property to switch between Appium 1 and Appium 2 used in the project.

By default, we still use Appium 1, which also the case for all CI builds.
But if anybody want to use Appium 2 locally, after this PR they need to:

  1. Install appium with mac2 driver as per their docs.
  2. Run appium 2 with appium --base-path=/wd/hub.
  3. Set IsRunningAppium2 msbuild prop to true on tests project (can be set in Rider globally).
  4. Run tests as normal.

@maxkatz6 maxkatz6 added the area-infrastructure Issues related to CI/tooling infrastructur label Apr 30, 2024
@maxkatz6 maxkatz6 requested a review from grokys April 30, 2024 21:57
Copy link
Member

@grokys grokys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, such hack! Very nice!

Yep, this should unblock running integration tests locally on macOS, even though it's crazy that we have to do this!

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0047946-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0047950-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit 27e446e into master Apr 30, 2024
12 checks passed
@maxkatz6 maxkatz6 deleted the appium-2-another-attempt branch April 30, 2024 23:42
@maxkatz6 maxkatz6 added the backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch label Aug 12, 2024
maxkatz6 added a commit that referenced this pull request Aug 12, 2024
* Make it work on macOS

* Revert most of changes

This reverts commit 3526c6f.

* Polyfill appium2, make it usable with both versions

* Revert unrelated changes

* Fix slider incompatibility
@maxkatz6 maxkatz6 added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Issues related to CI/tooling infrastructur backported-11.1.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants