Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions WireUI/Sources/WireLocators/Locators.swift
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,10 @@ public enum Locators {
case continueButton = "Continue"
}

public enum SecurityLevelView: String {

case classificationBanner = "ClassificationBanner"

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import SwiftUI
import WireCommonComponents
import WireDataModel
import WireDesign
import WireLocators
import WireSyncEngine

final class SecurityLevelView: UIView {
Expand Down Expand Up @@ -76,7 +77,9 @@ final class SecurityLevelView: UIView {
levelText
].joined(separator: " ")

accessibilityIdentifier = "ClassificationBanner" + classification.accessibilitySuffix
accessibilityIdentifier = Locators.SecurityLevelView.classificationBanner.rawValue + classification
Copy link
Collaborator

Choose a reason for hiding this comment

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

question: what's the classification suffix?

.accessibilitySuffix
accessibilityLabel = securityLevelLabel.text
}

func configure(
Expand Down
Loading