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

[Testing] Enabling WebView UITests from Issues folder in Appium #27284

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

NafeelaNazhir
Copy link
Contributor

@NafeelaNazhir NafeelaNazhir commented Jan 22, 2025

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:

  • Bugzilla35733
  • Issue10744
  • Issue12134
  • Issue16032
  • Issue18452
  • Issue21631
  • Issue21846
  • MemoryTests
  • Issue4720
  • Issue6286
  • Issue6323

@NafeelaNazhir NafeelaNazhir added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jan 22, 2025
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jan 22, 2025
Copy link
Contributor

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.

@NafeelaNazhir NafeelaNazhir added area-testing Unit tests, device tests and removed community ✨ Community Contribution labels Jan 22, 2025
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@NafeelaNazhir NafeelaNazhir changed the title [Testing] Enabling some UITests from Issues folder in Appium [Testing] Enabling WebView UITests from Issues folder in Appium Jan 23, 2025
@NafeelaNazhir NafeelaNazhir marked this pull request as ready for review January 23, 2025 04:24
@Copilot Copilot bot review requested due to automatic review settings January 23, 2025 04:24
@NafeelaNazhir NafeelaNazhir requested a review from a team as a code owner January 23, 2025 04:24
@anandhan-rajagopal anandhan-rajagopal added the community ✨ Community Contribution label Jan 23, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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)]
Copy link
Preview

Copilot AI Jan 23, 2025

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.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
@@ -236,6 +236,21 @@ but both can happen.
}
}

protected void VerifyInternetConnectivity()
Copy link
Contributor

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.

Copy link
Contributor Author

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()
Copy link
Contributor

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.

Copy link
Contributor Author

@NafeelaNazhir NafeelaNazhir Jan 23, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-testing Unit tests, device tests community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants