Run single Test on CI for faster debugging (#896)

* let's disable autocorrection

* waiting some more time in flaky tests and updated the content of a test that was failing

* controlled delay waited a bit moe for the timeline to settle

* try await

* trying with a bit more waiting time after the tap and a slow velocity for the swipe

* let's try waiting more time

* workflow for a single ui test

* las try

* slow swiping tests

* commenting out flaky CI tests, for now we'll just disable them

* better description

* flaky test improvement

* disabling animations that are not needed in UITests

* code that already prevents animations in UI tests

* code improv
This commit is contained in:
Mauro
2023-05-17 18:15:43 +02:00
committed by GitHub
parent 3ed5e96e5d
commit eb68f52a0f
14 changed files with 111 additions and 83 deletions
@@ -43,7 +43,7 @@ struct ShimmerModifier: ViewModifier {
content
.mask { gradient }
.task {
withAnimation(.linear(duration: 1.75).delay(0.5).repeatForever(autoreverses: false)) {
withElementAnimation(.linear(duration: 1.75).delay(0.5).repeatForever(autoreverses: false)) {
animationTrigger.toggle()
}
}
@@ -24,7 +24,9 @@ class UITestsAppCoordinator: AppCoordinatorProtocol {
let notificationManager: NotificationManagerProtocol = NotificationManagerMock()
init() {
// disabling View animations
UIView.setAnimationsEnabled(false)
navigationRootCoordinator = NavigationRootCoordinator()
ServiceLocator.shared.register(userIndicatorController: MockUserIndicatorController())
@@ -37,6 +39,14 @@ class UITestsAppCoordinator: AppCoordinatorProtocol {
}
func start() {
// disabling CA animations
UIApplication.shared.connectedScenes.forEach { scene in
guard let delegate = scene.delegate as? UIWindowSceneDelegate else {
return
}
delegate.window??.layer.speed = 0
}
guard let screenID = Tests.screenID else { fatalError("Unable to launch with unknown screen.") }
let mockScreen = MockScreen(id: screenID)