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

- recording: mask views with contentDescription setting and mask WebView if any masking is enabled #149

Merged
merged 5 commits into from
Jul 2, 2024

Conversation

marandaneto
Copy link
Member

💡 Motivation and Context

Appium and friends may use tag or content-desc for finding/tagging elements
https://appium.readthedocs.io/en/stable/en/commands/element/find-elements/
https://reactnative.dev/docs/accessibility#accessibilitylabel syncs down to content-desc on Android

Masks webviews on Android screenshots

💚 How did you test it?

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

@marandaneto marandaneto changed the title chore: allow masking views with contentDescription - recording: mask views with contentDescription setting and mask WebView if any masking is enabled Jul 1, 2024
@@ -30,7 +30,7 @@ internal class PostHogLifecycleObserverIntegration(
private val lastUpdatedSession = AtomicLong(0L)
private val sessionMaxInterval = (1000 * 60 * 30).toLong() // 30 minutes

companion object {
private companion object {
Copy link
Member Author

Choose a reason for hiding this comment

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

new linter...

@marandaneto marandaneto marked this pull request as ready for review July 1, 2024 11:26
@marandaneto marandaneto requested a review from a team July 1, 2024 11:27
Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

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

🚀

@marandaneto marandaneto merged commit c6a5fc6 into main Jul 2, 2024
5 checks passed
@marandaneto marandaneto deleted the chore/cont-desc-mask branch July 2, 2024 06:17
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