mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Periphery cleanup (#5893)
This commit is contained in:
@@ -111,15 +111,3 @@ extension XCUIApplication {
|
||||
Locale.current.language.region?.identifier ?? ""
|
||||
}
|
||||
}
|
||||
|
||||
private extension UIImage {
|
||||
/// Adjusts the image by cropping it with the given edge insets.
|
||||
func inset(by insets: UIEdgeInsets) -> UIImage {
|
||||
let insetRect = CGRect(origin: .zero, size: size).inset(by: insets)
|
||||
let renderer = UIGraphicsImageRenderer(size: insetRect.size)
|
||||
|
||||
return renderer.image { _ in
|
||||
draw(at: CGPoint(x: -insets.left, y: -insets.top))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,6 +111,7 @@ class AuthenticationFlowCoordinatorUITests: XCTestCase {
|
||||
try await app.assertScreenshot()
|
||||
}
|
||||
|
||||
// periphery:ignore - might be useful to have
|
||||
/// Disabled for now as the looping isn't 100% fool-proof and we have OAuth on the integration tests
|
||||
/// so this mock version doesn't really add anything to the tests as a whole.
|
||||
func disabled_testSelectingOAuthServer() {
|
||||
|
||||
@@ -14,7 +14,6 @@ class StartChatTests: XCTestCase {
|
||||
static let startChat = 1
|
||||
static let startChatWithResults = 2
|
||||
static let createRoom = 3
|
||||
static let createRoomAvatarPicker = 4
|
||||
static let createRoomFilled = 5
|
||||
static let inviteUsers = 6
|
||||
static let inviteUsersWithResults = 7
|
||||
|
||||
@@ -20,7 +20,6 @@ class UserSessionScreenTests: XCTestCase {
|
||||
enum Step {
|
||||
static let homeScreen = 1
|
||||
static let roomScreen = 2
|
||||
static let composerAttachments = 3
|
||||
static let homeScreenWithTabBar = 4
|
||||
static let spacesScreen = 5
|
||||
static let spaceScreen = 6
|
||||
|
||||
Reference in New Issue
Block a user