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

feat(ios): add web-view testing support. #4394

Merged
merged 72 commits into from Mar 12, 2024
Merged

feat(ios): add web-view testing support. #4394

merged 72 commits into from Mar 12, 2024

Conversation

asafkorem
Copy link
Contributor

@asafkorem asafkorem commented Mar 11, 2024

In this pull request, I've:

  • Added support for web-view testing on iOS, achieving feature parity with Android.
  • Introduced a new fancy test suite for full coverage of Detox web-view APIs.
  • Updated documentation to reflect these changes.

TODOS (in this PR):

  • Add missing unit tests (JS).
  • Ensure Android pass the new test suite.

Follow-ups:

  • Write a post about this new support in our Blog page.

@asafkorem asafkorem marked this pull request as ready for review March 11, 2024 21:01
@@ -0,0 +1,58 @@
const fs = require('fs-extra');
const { ssim } = require('ssim.js');
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've added this util for image comparison

Copy link
Collaborator

@noomorph noomorph Mar 12, 2024

Choose a reason for hiding this comment

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

(Optional) I would advise eventually to use https://github.com/americanexpress/jest-image-snapshot instead of low-level wrappers.

@asafkorem asafkorem merged commit 715d100 into master Mar 12, 2024
7 checks passed
@asafkorem asafkorem deleted the feat/ios-web-views branch March 12, 2024 06:35
@asafkorem asafkorem self-assigned this Mar 12, 2024
@asafkorem
Copy link
Contributor Author

It will be released today in the upcoming version.

@asafkorem
Copy link
Contributor Author

asafkorem commented Mar 12, 2024

Follow-up on Android issues: #4398, #4397

asafkorem added a commit that referenced this pull request Mar 12, 2024
fix(webviews): apply suggested changes from #4394.
@asafkorem
Copy link
Contributor Author

asafkorem commented Mar 13, 2024

Released with v20.19 :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web testing for iOS Add E2E tests coverage for webviews API Web View interaction on iOS
2 participants