-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Testing] Enabling WebView UITests from Issues folder in Appium #27284
base: main
Are you sure you want to change the base?
[Testing] Enabling WebView UITests from Issues folder in Appium #27284
Conversation
Hey there @NafeelaNazhir! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 8 out of 23 changed files in this pull request and generated 1 comment.
Files not reviewed (15)
- src/Controls/tests/TestCases.HostApp/Issues/Issue21846Modal.xaml: Language not supported
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21846.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21631.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/MemoryTests.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue16032.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4720.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18452.cs: Evaluated as low risk
- src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue6323.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla35733.cs: Evaluated as low risk
- src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4720.cs: Evaluated as low risk
- src/Controls/tests/TestCases.HostApp/Issues/Bugzilla/Bugzilla35733.cs: Evaluated as low risk
- src/Controls/tests/TestCases.HostApp/Issues/MemoryTests.cs: Evaluated as low risk
- src/Controls/tests/TestCases.HostApp/Issues/Issue16032.cs: Evaluated as low risk
- src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue6286.cs: Evaluated as low risk
- src/Controls/tests/TestCases.HostApp/Issues/Issue21846.xaml.cs: Evaluated as low risk
Comments suppressed due to low confidence (1)
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue12134.cs:24
- The word 'Failied' is misspelled. It should be 'Failed'.
App.WaitForElement("Success", "Failied on: {i}");
@@ -4,7 +4,7 @@ namespace Maui.Controls.Sample.Issues | |||
{ | |||
|
|||
[Issue(IssueTracker.Github, 12134, "[iOS] WkWebView does not handle cookies consistently", | |||
PlatformAffected.iOS)] | |||
PlatformAffected.iOS, isInternetRequired: true)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a public API change and could be a breaking change. Ensure that this change is documented and communicated properly.
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
@@ -236,6 +236,21 @@ but both can happen. | |||
} | |||
} | |||
|
|||
protected void VerifyInternetConnectivity() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already have it here
App.WaitForElement("NoInternetAccessLabel", timeout: TimeSpan.FromSeconds(1)); |
Create it in
UITest.cs
and use the same implementation where needed like we do with VerifyScreenshot
. So, leave this implementation and update Issue 3262.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated Issue3262 in the latest changes.
@@ -236,6 +236,21 @@ but both can happen. | |||
} | |||
} | |||
|
|||
protected void VerifyInternetConnectivity() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be interesting to implement a parameter: TimeSpan? retryDelay = null
Allow to retry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsuarezruiz , The ValidateInternetConnection method does not necessarily require a retry mechanism, as the host app already verifies the internet connection when loading the sample page itself. This method's primary purpose is to confirm that the page is displayed during the initial test execution. We believe that implementing a retry would be unnecessary and redundant. However, if you have particular use cases where a retry mechanism could be beneficial, we are open to considering those scenarios.
Description of Change
This PR focuses on enabling and updating 11 testcases in Appium. The tests, previously ignored using Fails attribute, are reviewed, and modified to ensure they are functional with the Appium framework. We are going to enable tests in blocks in different PRs.
TestCases: