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

test(user-feedback): ui tests to display form, submit, cancel #4536

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into armcknight/feat(user-…
…feedback)/ui-tests
  • Loading branch information
armcknight committed Nov 19, 2024
commit 7b084a4c40e3a15321639506d5ce41789625a0b7
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//swiftlint:disable todo

import XCTest

class UserFeedbackUITests: BaseUITest {
Expand Down Expand Up @@ -152,3 +154,5 @@ class UserFeedbackUITests: BaseUITest {
XCTAssertEqual(try XCTUnwrap(messageTextView.value as? String), "")
}
}

//swiftlint:enable todo
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//swiftlint:disable todo type_body_length

import Foundation
#if os(iOS) && !SENTRY_NO_UIKIT
@_implementationOnly import _SentryPrivate
Expand Down Expand Up @@ -26,7 +28,49 @@
self.delegate = delegate
super.init(nibName: nil, bundle: nil)
view.backgroundColor = config.theme.background
initLayout()
themeElements()
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

// MARK: Actions

func addScreenshotButtonTapped() {

}

func removeScreenshotButtonTapped() {

}

func submitFeedbackButtonTapped() {
// TODO: validate and package entries
delegate?.confirmed()
}

func cancelButtonTapped() {
delegate?.cancelled()
}

// MARK: Layout

let formElementHeight: CGFloat = 40
let logoWidth: CGFloat = 47
lazy var messageTextViewHeightConstraint = messageTextView.heightAnchor.constraint(equalToConstant: config.theme.font.lineHeight * 5)
lazy var logoViewWidthConstraint = sentryLogoView.widthAnchor.constraint(equalToConstant: logoWidth * config.scaleFactor)

Check failure on line 63 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift6 Simulator

ambiguous use of 'logoWidth'

Check failure on line 63 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build SwiftUITestSample Sample

ambiguous use of 'logoWidth'

Check failure on line 63 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 15 (17.2) Simulator

ambiguous use of 'logoWidth'

Check failure on line 63 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for SwiftUI on iPhone 8 (16.1) Simulator

ambiguous use of 'logoWidth'

Check failure on line 63 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Release Build of iOS Swift

ambiguous use of 'logoWidth'

Check failure on line 63 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for ios_objc on Simulators

ambiguous use of 'logoWidth'

Check failure on line 63 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build app and test runner

ambiguous use of 'logoWidth'

Check failure on line 63 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 14 (16.4) Simulator

ambiguous use of 'logoWidth'
lazy var messagePlaceholderLeadingConstraint = messageTextViewPlaceholder.leadingAnchor.constraint(equalTo: messageTextView.leadingAnchor, constant: messageTextView.textContainerInset.left + 5)
lazy var messagePlaceholderTopConstraint = messageTextViewPlaceholder.topAnchor.constraint(equalTo: messageTextView.topAnchor, constant: messageTextView.textContainerInset.top)
lazy var fullNameTextFieldHeightConstraint = fullNameTextField.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)

Check failure on line 66 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift6 Simulator

ambiguous use of 'formElementHeight'

Check failure on line 66 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build SwiftUITestSample Sample

ambiguous use of 'formElementHeight'

Check failure on line 66 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 15 (17.2) Simulator

ambiguous use of 'formElementHeight'

Check failure on line 66 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for SwiftUI on iPhone 8 (16.1) Simulator

ambiguous use of 'formElementHeight'

Check failure on line 66 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Release Build of iOS Swift

ambiguous use of 'formElementHeight'

Check failure on line 66 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for ios_objc on Simulators

ambiguous use of 'formElementHeight'

Check failure on line 66 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build app and test runner

ambiguous use of 'formElementHeight'

Check failure on line 66 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 14 (16.4) Simulator

ambiguous use of 'formElementHeight'
lazy var emailTextFieldHeightConstraint = emailTextField.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)

Check failure on line 67 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift6 Simulator

ambiguous use of 'formElementHeight'

Check failure on line 67 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build SwiftUITestSample Sample

ambiguous use of 'formElementHeight'

Check failure on line 67 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 15 (17.2) Simulator

ambiguous use of 'formElementHeight'

Check failure on line 67 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for SwiftUI on iPhone 8 (16.1) Simulator

ambiguous use of 'formElementHeight'

Check failure on line 67 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Release Build of iOS Swift

ambiguous use of 'formElementHeight'

Check failure on line 67 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for ios_objc on Simulators

ambiguous use of 'formElementHeight'

Check failure on line 67 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build app and test runner

ambiguous use of 'formElementHeight'

Check failure on line 67 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 14 (16.4) Simulator

ambiguous use of 'formElementHeight'
lazy var addScreenshotButtonHeightConstraint = addScreenshotButton.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)
lazy var removeScreenshotButtonHeightConstraint = removeScreenshotButton.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)
lazy var submitButtonHeightConstraint = submitButton.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)
lazy var cancelButtonHeightConstraint = cancelButton.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)

func initLayout() {
NSLayoutConstraint.activate([
scrollView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: config.margin),
scrollView.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor, constant: config.margin),
Expand Down Expand Up @@ -55,7 +99,28 @@
messagePlaceholderLeadingConstraint,
messagePlaceholderTopConstraint
])
}

/// Update the constants of constraints and any other layout, like transforms, in response to e.g. accessibility dynamic text size changes.
func updateLayout() {
let verticalPadding: CGFloat = 8
messageTextView.textContainerInset = .init(top: verticalPadding * config.scaleFactor, left: 2 * config.scaleFactor, bottom: verticalPadding * config.scaleFactor, right: 2 * config.scaleFactor)

messageTextViewHeightConstraint.constant = config.theme.font.lineHeight * 5
logoViewWidthConstraint.constant = logoWidth * config.scaleFactor
messagePlaceholderLeadingConstraint.constant = messageTextView.textContainerInset.left + 5
messagePlaceholderTopConstraint.constant = messageTextView.textContainerInset.top
fullNameTextFieldHeightConstraint.constant = formElementHeight * config.scaleFactor
emailTextFieldHeightConstraint.constant = formElementHeight * config.scaleFactor
addScreenshotButtonHeightConstraint.constant = formElementHeight * config.scaleFactor
removeScreenshotButtonHeightConstraint.constant = formElementHeight * config.scaleFactor
submitButtonHeightConstraint.constant = formElementHeight * config.scaleFactor
cancelButtonHeightConstraint.constant = formElementHeight * config.scaleFactor
}

// MARK: UI Elements

func themeElements() {
[fullNameTextField, emailTextField].forEach {
$0.font = config.theme.font
$0.adjustsFontForContentSizeCategory = true
Expand Down Expand Up @@ -122,11 +187,11 @@
let formElementHeight: CGFloat = 40
let logoWidth: CGFloat = 47
lazy var messageTextViewHeightConstraint = messageTextView.heightAnchor.constraint(equalToConstant: config.theme.font.lineHeight * 5)
lazy var logoViewWidthConstraint = sentryLogoView.widthAnchor.constraint(equalToConstant: logoWidth * config.scaleFactor)

Check failure on line 190 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift6 Simulator

ambiguous use of 'logoWidth'

Check failure on line 190 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build SwiftUITestSample Sample

ambiguous use of 'logoWidth'

Check failure on line 190 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 15 (17.2) Simulator

ambiguous use of 'logoWidth'

Check failure on line 190 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for SwiftUI on iPhone 8 (16.1) Simulator

ambiguous use of 'logoWidth'

Check failure on line 190 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Release Build of iOS Swift

ambiguous use of 'logoWidth'

Check failure on line 190 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for ios_objc on Simulators

ambiguous use of 'logoWidth'

Check failure on line 190 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build app and test runner

ambiguous use of 'logoWidth'

Check failure on line 190 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 14 (16.4) Simulator

ambiguous use of 'logoWidth'
lazy var messagePlaceholderLeadingConstraint = messageTextViewPlaceholder.leadingAnchor.constraint(equalTo: messageTextView.leadingAnchor, constant: messageTextView.textContainerInset.left + 5)
lazy var messagePlaceholderTopConstraint = messageTextViewPlaceholder.topAnchor.constraint(equalTo: messageTextView.topAnchor, constant: messageTextView.textContainerInset.top)
lazy var fullNameTextFieldHeightConstraint = fullNameTextField.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)

Check failure on line 193 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift6 Simulator

ambiguous use of 'formElementHeight'

Check failure on line 193 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build SwiftUITestSample Sample

ambiguous use of 'formElementHeight'

Check failure on line 193 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 15 (17.2) Simulator

ambiguous use of 'formElementHeight'

Check failure on line 193 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for SwiftUI on iPhone 8 (16.1) Simulator

ambiguous use of 'formElementHeight'

Check failure on line 193 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Release Build of iOS Swift

ambiguous use of 'formElementHeight'

Check failure on line 193 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for ios_objc on Simulators

ambiguous use of 'formElementHeight'

Check failure on line 193 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build app and test runner

ambiguous use of 'formElementHeight'

Check failure on line 193 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 14 (16.4) Simulator

ambiguous use of 'formElementHeight'
lazy var emailTextFieldHeightConstraint = emailTextField.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)

Check failure on line 194 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift6 Simulator

ambiguous use of 'formElementHeight'

Check failure on line 194 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build SwiftUITestSample Sample

ambiguous use of 'formElementHeight'

Check failure on line 194 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 15 (17.2) Simulator

ambiguous use of 'formElementHeight'

Check failure on line 194 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for SwiftUI on iPhone 8 (16.1) Simulator

ambiguous use of 'formElementHeight'

Check failure on line 194 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Release Build of iOS Swift

ambiguous use of 'formElementHeight'

Check failure on line 194 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for ios_objc on Simulators

ambiguous use of 'formElementHeight'

Check failure on line 194 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build app and test runner

ambiguous use of 'formElementHeight'

Check failure on line 194 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 14 (16.4) Simulator

ambiguous use of 'formElementHeight'
lazy var addScreenshotButtonHeightConstraint = addScreenshotButton.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)
lazy var removeScreenshotButtonHeightConstraint = removeScreenshotButton.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)
lazy var submitButtonHeightConstraint = submitButton.heightAnchor.constraint(equalToConstant: formElementHeight * config.scaleFactor)
Expand Down Expand Up @@ -225,7 +290,7 @@
let button = UIButton(frame: .zero)
button.setTitle(config.formConfig.addScreenshotButtonLabel, for: .normal)
button.accessibilityLabel = config.formConfig.addScreenshotButtonAccessibilityLabel
button.addTarget(self, action: #selector(addScreenshotButtonTapped), for: .touchUpInside)

Check failure on line 293 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift6 Simulator

ambiguous use of 'addScreenshotButtonTapped()'

Check failure on line 293 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build SwiftUITestSample Sample

ambiguous use of 'addScreenshotButtonTapped()'

Check failure on line 293 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 15 (17.2) Simulator

ambiguous use of 'addScreenshotButtonTapped()'

Check failure on line 293 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for SwiftUI on iPhone 8 (16.1) Simulator

ambiguous use of 'addScreenshotButtonTapped()'

Check failure on line 293 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Release Build of iOS Swift

ambiguous use of 'addScreenshotButtonTapped()'

Check failure on line 293 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for ios_objc on Simulators

ambiguous use of 'addScreenshotButtonTapped()'

Check failure on line 293 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build app and test runner

ambiguous use of 'addScreenshotButtonTapped()'

Check failure on line 293 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 14 (16.4) Simulator

ambiguous use of 'addScreenshotButtonTapped()'
return button
}()

Expand All @@ -233,7 +298,7 @@
let button = UIButton(frame: .zero)
button.setTitle(config.formConfig.removeScreenshotButtonLabel, for: .normal)
button.accessibilityLabel = config.formConfig.removeScreenshotButtonAccessibilityLabel
button.addTarget(self, action: #selector(removeScreenshotButtonTapped), for: .touchUpInside)

Check failure on line 301 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift6 Simulator

ambiguous use of 'removeScreenshotButtonTapped()'

Check failure on line 301 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build SwiftUITestSample Sample

ambiguous use of 'removeScreenshotButtonTapped()'

Check failure on line 301 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 15 (17.2) Simulator

ambiguous use of 'removeScreenshotButtonTapped()'

Check failure on line 301 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for SwiftUI on iPhone 8 (16.1) Simulator

ambiguous use of 'removeScreenshotButtonTapped()'

Check failure on line 301 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Release Build of iOS Swift

ambiguous use of 'removeScreenshotButtonTapped()'

Check failure on line 301 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for ios_objc on Simulators

ambiguous use of 'removeScreenshotButtonTapped()'

Check failure on line 301 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build app and test runner

ambiguous use of 'removeScreenshotButtonTapped()'

Check failure on line 301 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 14 (16.4) Simulator

ambiguous use of 'removeScreenshotButtonTapped()'
return button
}()

Expand All @@ -243,7 +308,7 @@
button.accessibilityLabel = config.formConfig.submitButtonAccessibilityLabel
button.backgroundColor = config.theme.submitBackground
button.setTitleColor(config.theme.submitForeground, for: .normal)
button.addTarget(self, action: #selector(submitFeedbackButtonTapped), for: .touchUpInside)

Check failure on line 311 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift6 Simulator

ambiguous use of 'submitFeedbackButtonTapped()'

Check failure on line 311 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build SwiftUITestSample Sample

ambiguous use of 'submitFeedbackButtonTapped()'

Check failure on line 311 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 15 (17.2) Simulator

ambiguous use of 'submitFeedbackButtonTapped()'

Check failure on line 311 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for SwiftUI on iPhone 8 (16.1) Simulator

ambiguous use of 'submitFeedbackButtonTapped()'

Check failure on line 311 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Release Build of iOS Swift

ambiguous use of 'submitFeedbackButtonTapped()'

Check failure on line 311 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for ios_objc on Simulators

ambiguous use of 'submitFeedbackButtonTapped()'

Check failure on line 311 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build app and test runner

ambiguous use of 'submitFeedbackButtonTapped()'

Check failure on line 311 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 14 (16.4) Simulator

ambiguous use of 'submitFeedbackButtonTapped()'
return button
}()

Expand All @@ -251,7 +316,7 @@
let button = UIButton(frame: .zero)
button.setTitle(config.formConfig.cancelButtonLabel, for: .normal)
button.accessibilityLabel = config.formConfig.cancelButtonAccessibilityLabel
button.addTarget(self, action: #selector(cancelButtonTapped), for: .touchUpInside)

Check failure on line 319 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift6 Simulator

ambiguous use of 'cancelButtonTapped()'

Check failure on line 319 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build SwiftUITestSample Sample

ambiguous use of 'cancelButtonTapped()'

Check failure on line 319 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 15 (17.2) Simulator

ambiguous use of 'cancelButtonTapped()'

Check failure on line 319 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for SwiftUI on iPhone 8 (16.1) Simulator

ambiguous use of 'cancelButtonTapped()'

Check failure on line 319 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Release Build of iOS Swift

ambiguous use of 'cancelButtonTapped()'

Check failure on line 319 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for ios_objc on Simulators

ambiguous use of 'cancelButtonTapped()'

Check failure on line 319 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / Build app and test runner

ambiguous use of 'cancelButtonTapped()'

Check failure on line 319 in Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackForm.swift

View workflow job for this annotation

GitHub Actions / UI Tests for iOS-Swift iPhone 14 (16.4) Simulator

ambiguous use of 'cancelButtonTapped()'
return button
}()

Expand Down Expand Up @@ -326,3 +391,5 @@
}

#endif // os(iOS) && !SENTRY_NO_UIKIT

//swiftlint:enable todo type_body_length
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//swiftlint:disable todo

import Foundation
#if os(iOS) && !SENTRY_NO_UIKIT
@_implementationOnly import _SentryPrivate
Expand Down Expand Up @@ -109,3 +111,5 @@ struct SentryUserFeedbackWidget {
}

#endif // os(iOS) && !SENTRY_NO_UIKIT

//swiftlint:enable todo
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.