2022-06-21 17:28:42 +00:00
|
|
|
//
|
2022-08-11 07:54:24 +00:00
|
|
|
// Copyright 2022 New Vector Ltd
|
2022-06-21 17:28:42 +00:00
|
|
|
//
|
2022-08-11 07:54:24 +00:00
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
2022-06-21 17:28:42 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2023-02-14 16:25:24 +00:00
|
|
|
enum UITestsScreenIdentifier: String {
|
2022-06-21 17:28:42 +00:00
|
|
|
case login
|
2022-07-04 09:00:27 +00:00
|
|
|
case serverSelection
|
|
|
|
case serverSelectionNonModal
|
|
|
|
case authenticationFlow
|
2022-09-15 09:41:37 +00:00
|
|
|
case softLogout
|
2022-09-02 09:49:59 +00:00
|
|
|
case analyticsPrompt
|
2022-06-21 17:28:42 +00:00
|
|
|
case simpleRegular
|
|
|
|
case simpleUpgrade
|
2022-09-23 09:21:41 +00:00
|
|
|
case home
|
2022-06-21 17:28:42 +00:00
|
|
|
case settings
|
|
|
|
case bugReport
|
|
|
|
case bugReportWithScreenshot
|
2022-11-24 08:35:00 +00:00
|
|
|
case onboarding
|
2022-06-21 17:28:42 +00:00
|
|
|
case roomPlainNoAvatar
|
|
|
|
case roomEncryptedWithAvatar
|
2022-12-12 12:27:49 +00:00
|
|
|
case roomSmallTimeline
|
|
|
|
case roomSmallTimelineIncomingAndSmallPagination
|
|
|
|
case roomSmallTimelineLargePagination
|
2023-01-05 16:35:20 +00:00
|
|
|
case roomLayoutTop
|
|
|
|
case roomLayoutMiddle
|
|
|
|
case roomLayoutBottom
|
2022-07-01 10:56:52 +00:00
|
|
|
case sessionVerification
|
2022-12-15 13:22:39 +00:00
|
|
|
case userSessionScreen
|
2022-12-19 12:39:33 +00:00
|
|
|
case roomDetailsScreen
|
2023-02-09 13:57:55 +00:00
|
|
|
case roomDetailsScreenWithRoomAvatar
|
2023-03-24 19:27:47 +00:00
|
|
|
case roomMembersListScreen
|
|
|
|
case roomMemberDetailsAccountOwner
|
2023-03-28 09:00:40 +00:00
|
|
|
case roomMemberDetails
|
|
|
|
case roomMemberDetailsIgnoredUser
|
2023-03-02 18:24:10 +00:00
|
|
|
case reportContent
|
2023-03-14 09:50:09 +00:00
|
|
|
case startChat
|
2023-03-29 12:29:25 +00:00
|
|
|
case startChatWithSearchResults
|
2022-06-21 17:28:42 +00:00
|
|
|
}
|
|
|
|
|
2023-02-14 16:25:24 +00:00
|
|
|
extension UITestsScreenIdentifier: CustomStringConvertible {
|
2022-06-21 17:28:42 +00:00
|
|
|
var description: String {
|
2022-07-06 13:49:05 +00:00
|
|
|
rawValue.titlecased()
|
2022-06-21 17:28:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private extension String {
|
|
|
|
func titlecased() -> String {
|
|
|
|
replacingOccurrences(of: "([A-Z])",
|
|
|
|
with: " $1",
|
|
|
|
options: .regularExpression,
|
|
|
|
range: range(of: self))
|
2022-07-06 13:49:05 +00:00
|
|
|
.trimmingCharacters(in: .whitespacesAndNewlines)
|
|
|
|
.capitalized
|
2022-06-21 17:28:42 +00:00
|
|
|
}
|
|
|
|
}
|