Skip to content

Commit

Permalink
fix: Remove UITestsSnackBarPresenter
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Feb 6, 2025
1 parent 2fa9095 commit 962d37e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 76 deletions.
20 changes: 0 additions & 20 deletions MailUITests/MailUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,8 @@ class MailUITests: XCTestCase {

let app = XCUIApplication()

private func configureDI() {
SimpleResolver.sharedResolver.removeAll()

var factories: [Factory] = []
factories += TargetAssembly.getTargetServices() + TargetAssembly.getCommonServices()
factories = factories.filter { $0.type != SnackBarPresentable.self }

// We need a custom type to prevent Snackbars from disappearing too quickly
factories.append(
Factory(type: SnackBarPresentable.self) { _, _ in
UITestsSnackBarPresenter()
}
)

for factory in factories {
SimpleResolver.sharedResolver.store(factory: factory)
}
}

override func setUpWithError() throws {
try super.setUpWithError()
configureDI()
continueAfterFailure = false
}

Expand Down
56 changes: 0 additions & 56 deletions MailUITests/UITestsSnackBarPresenter.swift

This file was deleted.

0 comments on commit 962d37e

Please sign in to comment.