Skip to content

Commit

Permalink
Adds email accessibility ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jubie-livefront committed Mar 15, 2024
1 parent bdeb1e3 commit b2bc104
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ private extension ProfileSwitcherHandler {
///
func didLongPressProfileSwitcherItem(_ account: ProfileSwitcherItem) async {
profileSwitcherState.isVisible = false
let hasNeverLock = await (
try? profileServices.authRepository.sessionTimeoutValue(userId: account.userId)
) == SessionTimeoutValue.never
let sessionTimeout = try? await profileServices.authRepository.sessionTimeoutValue(userId: account.userId)
let hasNeverLock = sessionTimeout == .never
showAlert(
.accountOptions(
account,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@ struct ProfileSwitcherRow: View {
VStack(alignment: .leading, spacing: 0) {
Text(title)
.styleGuide(.body)
.accessibilityIdentifier("AccountEmailLabel")
.foregroundColor(Asset.Colors.textPrimary.swiftUIColor)
.truncationMode(.tail)
.lineLimit(1)
.truncationMode(.tail)
if let subtitle {
Text(subtitle)
.styleGuide(.subheadline)
.foregroundColor(Asset.Colors.textSecondary.swiftUIColor)
.accessibilityIdentifier("AccountStatusLabel")
.foregroundColor(Asset.Colors.textSecondary.swiftUIColor)
}
}
Spacer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct ProfileSwitcherRowState: Equatable {
///
/// - Parameters:
/// - ProfileSwitcherItem: The profile switcher item.
/// - showDivider: a flag for toggling divider visibility, defaults to true
/// - showDivider: A flag for toggling divider visibility, defaults to true
///
case active(ProfileSwitcherItem)

Expand Down

0 comments on commit b2bc104

Please sign in to comment.