Commit 38a1af2
test(e2e): Adds Feedback Widget Capture Screenshot Maestro E2E tests (#4795)
* Adds basic form functionality
* Update imports
* Update imports
* Remove useState hook to avoid multiple react instances issues
* Move types and styles in different files
* Removes attachment button to be added back separately along with the implementation
* Add basic field validation
* Adds changelog
* Updates changelog
* Updates changelog
* Trim whitespaces from the submitted feedback
* Adds tests
* Renames FeedbackFormScreen to FeedbackForm
* Add beta label
* Extract default text to constants
* Moves constant to a separate file and aligns naming with JS
* Adds input text labels
* Close screen before sending the feedback to minimise wait time
Co-authored-by: LucasZF <[email protected]>
* Rename file for consistency
* Flatten configuration hierarchy and clean up
* Align required values with JS
* Use Sentry user email and name when set
* Simplifies email validation
* Show success alert message
* Aligns naming with JS and unmounts the form by default
* Use the minimum config without props in the changelog
* Adds development not for unimplemented function
* Show email and name conditionally
* Adds sentry branding (png logo)
* Adds sentry logo resource
* Add assets in module exports
* Revert "Add assets in module exports"
This reverts commit 5292475.
* Revert "Adds sentry logo resource"
This reverts commit d6e9229.
* Revert "Adds sentry branding (png logo)"
This reverts commit 8c56753.
* Add last event id
* Mock lastEventId
* Adds beta note in the changelog
* Autoinject feedback form
* Updates changelog
* Align colors with JS
* Update CHANGELOG.md
Co-authored-by: Krystof Woldrich <[email protected]>
* Update CHANGELOG.md
Co-authored-by: Krystof Woldrich <[email protected]>
* Update CHANGELOG.md
Co-authored-by: Krystof Woldrich <[email protected]>
* Use regular fonts for both buttons
* Handle keyboard properly
* Adds an option on whether the email should be validated
* Merge properties only once
* Loads current user data on form construction
* Remove unneeded extra padding
* Fix background color issue
* Adds feedback button
* Updates the changelog
* Fixes changelog typo
* Updates styles background color
Co-authored-by: Krystof Woldrich <[email protected]>
* Use defaultProps
* Correct defaultProps
* Adds test to verify when getUser is called
* Use smaller image
Co-authored-by: LucasZF <[email protected]>
* Add margin next to the icon
* Adds bottom spacing in the ErrorScreen so that the feedback button does not hide the scrollview buttons
* (2.2) feat: Add Feedback Form UI Branding logo (#4357)
* Adds sentry branding logo as a base64 encoded png
---------
Co-authored-by: LucasZF <[email protected]>
* Autoinject feedback form (#4370)
* Align changelog entry
* Update changelog
* Disable bouncing
* Add modal ui appearance
* Update snapshot tests
* Fix bottom margin
* Fix sheet height
* Remove extra modal border
* Do not expose modal styles
* Animate background color
* Avoid keyboard in modal
* Update changelog
* Fix changelog
* Updates comment
* Extract FeedbackButtonProps
* Add public function description to satisfy lint check
* Adds tests
* Fix tests
* Add test ids in feedback widget
* Add feedback widget button in test app
* WIP: Add feedback test
* Update snapshot tests with the added test ids
* Android happy path test
* Check field validation
* Scroll if button is not visible
* Adds accessibility labels
* Remove extended initial checks due to flakiness
* Revert "Remove extended initial checks due to flakiness"
This reverts commit fa3bdfc.
* Add hardcoded dark and light color themes
* Rename theme options
* Update snapshot tests
* Include in the feedback integration
* Fix circular dependency
* Add theme integration options
* Adds changelog
* Add comment note
* Align with JS api
* Remove unneeded line
Co-authored-by: Krystof Woldrich <[email protected]>
* Place widget button below the feedback widget shadow
* Expose showFeedbackButton/hideFeedbackButton methods
* Add dummy integration for tracking usage
* Adds button border
* Fixes tests
* Add accentBackground and accentForeground colors
* Extract integration getter in a helper function
* Adds dynamic theming support
* Add snapshot tests
* Show screenshot button UI
* Add screenshot button integration
* Add screenshot icon
* Adds Take a screenshot button in FeedbackWidget
* Updates snapshot tests
* Fix circularDepCheck
* Fix circularDepCheck
* Attache captured screenshot
* Hide the take screenshot button when there is a screenshot
* Convert uint8Array to Base64 on the native side
* ref(feedback): Extracts FeedbackWidgetProvider in a separate file
* Updates exposed comments
* Adds snapshot tests
* Disable functionality on the Web
* Add screenshot button in the sample expo app
* Adds system theme tests
* Test dynamically changed theme
* Remove showScreenshotButton and hideScreenshotButton from the exposed api
* Fix function name typo
* Adds enableTakeScreenshot option
* Adds happy flow test
* Make flow tests more granular
* Increate wait time out to fix flakiness on ci
* Reset widget state after each test
* Fix CI flakiness
* Remove flaky test
* fix(feedback): Fixes accessibility issue on iOS
* Add changelog
* Properly wrap root app component
* Handle undefined AppRegistryIntegration.onRunApplication gracefully
* Fix lint issue
* Do not validate all fields for visibility
* Take screenshots for debugging
* Revert "Take screenshots for debugging"
This reverts commit 3e361a1.
* Simplify test scenario
* Try without hiding the keyboard
* Test Feedback button
* Test screenshot capture
* Show an error if screenshot capture fails
* Test error flow
* Revert unneeded change
* Test with latest Maestro
* Revert "Test with latest Maestro"
This reverts commit e7c31bf.
* Revert "Test screenshot capture"
This reverts commit 8913ffc.
* Skip for 0.65.3
* Remove version check
* Use testId for feedback button
* Skip for 0.65.3
* Update snapshots
* Cleanup testIds and accessibility labels
* Enable for all RN versions
* Temp: remove modal supported check
* Do not use native driver for backgroundOpacity animation
* Revert "Temp: remove modal supported check"
This reverts commit e20aff2.
* Do not use native driver for backgroundOpacity animation
* Use text instead of test ids
* Separate iOS and Android tests
* test(e2e): Adds Feedback Widget Capture Screenshot Maestro E2E tests
* Update test snapshots
* Hide keyboard by tapping on the sentry logo
* Tap on the title to hide the keyboard on Android
* Tap on email label to hide the keyboard on Android
* Wait for the screen to become visible after the screenshot capture
* Extend wait timeout after taking the screenshot
* increase timeout
* Revert "increase timeout"
This reverts commit 7865f32.
* Revert "Extend wait timeout after taking the screenshot"
This reverts commit 80dea08.
* Tweak the emulator
* Revert "Tweak the emulator"
This reverts commit ff8458c.
* Try Google API emulator
---------
Co-authored-by: LucasZF <[email protected]>
Co-authored-by: Krystof Woldrich <[email protected]>1 parent bdb324a commit 38a1af2
File tree
10 files changed
+138
-4
lines changed- .github/workflows
- dev-packages/e2e-tests
- maestro
- feedback
- patch-scripts
- packages/core
- src/js/feedback
- test/feedback/__snapshots__
10 files changed
+138
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
395 | | - | |
| 394 | + | |
396 | 395 | | |
397 | 396 | | |
398 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| 251 | + | |
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
| |||
0 commit comments