mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
possible fix for flaky UI tests
- increased the time for the oidc selection alert check - for the poll screen creation, in the test only we reduced the number of options to 10
This commit is contained in:
@@ -10,8 +10,8 @@ import SwiftUI
|
||||
|
||||
struct PollFormScreenCoordinatorParameters {
|
||||
let mode: PollFormMode
|
||||
/// The max number of allowed options, default is 20, but for faster UI tests we allow the value to be lower
|
||||
var maxNumberOfOptions = 20
|
||||
/// The max number of allowed options, if no value provided the default value of the view model will be used.
|
||||
var maxNumberOfOptions: Int?
|
||||
}
|
||||
|
||||
enum PollFormScreenCoordinatorAction {
|
||||
|
||||
@@ -15,7 +15,7 @@ enum PollFormScreenViewModelAction: Equatable {
|
||||
|
||||
struct PollFormScreenViewState: BindableState {
|
||||
let mode: PollFormMode
|
||||
var maxNumberOfOptions: Int
|
||||
let maxNumberOfOptions: Int
|
||||
var bindings: PollFormScreenViewStateBindings = .init()
|
||||
|
||||
init(mode: PollFormMode, maxNumberOfOptions: Int) {
|
||||
|
||||
@@ -17,8 +17,8 @@ class PollFormScreenViewModel: PollFormScreenViewModelType, PollFormScreenViewMo
|
||||
actionsSubject.eraseToAnyPublisher()
|
||||
}
|
||||
|
||||
init(mode: PollFormMode, maxNumberOfOptions: Int) {
|
||||
super.init(initialViewState: .init(mode: mode, maxNumberOfOptions: maxNumberOfOptions))
|
||||
init(mode: PollFormMode, maxNumberOfOptions: Int? = nil) {
|
||||
super.init(initialViewState: .init(mode: mode, maxNumberOfOptions: maxNumberOfOptions ?? 20))
|
||||
}
|
||||
|
||||
// MARK: - Public
|
||||
|
||||
Reference in New Issue
Block a user