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

ci: use gha instead of Azure for iOS in Azure #987

Merged
merged 37 commits into from
May 7, 2024
Merged

ci: use gha instead of Azure for iOS in Azure #987

merged 37 commits into from
May 7, 2024

Conversation

KazuCocoa
Copy link
Member

functional-test.yml can optimize more, but for now, this PR aims to drop Azure tests for iOS.
I'll update functional-test.yml for GHA after adding Android to remove azure.

@@ -43,21 +47,29 @@ jobs:
model: 'iPhone 15 Plus'
os_version: '17.4'
Copy link
Contributor

Choose a reason for hiding this comment

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

It makes sense to extract these values and keep them in a single place, for example env variables
The reason for it is that when we need to change iOS version this also usually requires to change phone model and macOS version

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, similar thing will occur in Android as well, I believe. So firsly I move Azure to GHA without such definition and will do for Android and iOS both later. Then perhaps it would make sense to modify python code side as well to refer to them.

@@ -28,7 +28,7 @@ def get_desired_capabilities(app: Optional[str] = None) -> Dict[str, Any]:
desired_caps: Dict[str, Any] = {
'deviceName': iphone_device_name(),
'platformName': 'iOS',
'platformVersion': '15.5',
'platformVersion': '17.4',
Copy link
Contributor

Choose a reason for hiding this comment

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

this value should be received from CI env

@@ -28,7 +28,7 @@ def get_desired_capabilities(app: Optional[str] = None) -> Dict[str, Any]:
desired_caps: Dict[str, Any] = {
'deviceName': iphone_device_name(),
Copy link
Contributor

Choose a reason for hiding this comment

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

this value should be received from CI env

@@ -70,7 +70,7 @@ def wda_port() -> int:


def iphone_device_name() -> str:
prefix = 'iPhone 12'
prefix = 'iPhone 15 Plus'
Copy link
Contributor

Choose a reason for hiding this comment

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

this value should be received from CI env

@@ -18,14 +18,14 @@

class TestFindByElementWebelement(BaseTestCase):
def test_find_element_by_path(self) -> None:
el = self.driver.find_element(by=AppiumBy.IOS_PREDICATE, value='wdName == "UICatalog"')
assert 'UICatalog' == el.get_attribute('name')
el = self.driver.find_element(by=AppiumBy.IOS_PREDICATE, value='wdName == "UIKitCatalog"')
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach May 6, 2024

Choose a reason for hiding this comment

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

should the constant also be used in the locator? same below

@KazuCocoa KazuCocoa merged commit 5442e60 into master May 7, 2024
14 of 15 checks passed
@KazuCocoa KazuCocoa deleted the gha branch May 7, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants