diff --git a/GliaWidgets/Coordinator/Chat/ChatCoordinator.swift b/GliaWidgets/Coordinator/Chat/ChatCoordinator.swift index 2ba17a6e6..7205ab1d8 100644 --- a/GliaWidgets/Coordinator/Chat/ChatCoordinator.swift +++ b/GliaWidgets/Coordinator/Chat/ChatCoordinator.swift @@ -184,6 +184,7 @@ class ChatCoordinator: SubFlowCoordinator, FlowCoordinator { let configuration = SFSafariViewController.Configuration() configuration.entersReaderIfAvailable = true let safariViewController = SFSafariViewController(url: url, configuration: configuration) + safariViewController.view.accessibilityIdentifier = "safari_root_view" navigationPresenter.present(safariViewController) } } diff --git a/GliaWidgets/View/Chat/Message/Content/Text/ChatTextContentView.swift b/GliaWidgets/View/Chat/Message/Content/Text/ChatTextContentView.swift index 52d491463..d27ee7ae8 100644 --- a/GliaWidgets/View/Chat/Message/Content/Text/ChatTextContentView.swift +++ b/GliaWidgets/View/Chat/Message/Content/Text/ChatTextContentView.swift @@ -97,7 +97,7 @@ class ChatTextContentView: UIView { } textView.text = text } - accessibilityIdentifier = text + textView.accessibilityIdentifier = text } }