diff --git a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Model/PageElement.swift b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Model/PageElement.swift index ee049d3908..a184c4bb65 100644 --- a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Model/PageElement.swift +++ b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Model/PageElement.swift @@ -22,6 +22,8 @@ struct PageElement: Codable, Sendable { let selector: String let parent: ParentElement? let multiple: Bool? + let min: String? + let max: String? } struct ProfileMatch: Codable, Sendable { diff --git a/LocalPackages/DataBrokerProtection/Tests/DataBrokerProtectionTests/DataBrokerOperationActionTests.swift b/LocalPackages/DataBrokerProtection/Tests/DataBrokerProtectionTests/DataBrokerOperationActionTests.swift index edb72a0ac3..330619c12d 100644 --- a/LocalPackages/DataBrokerProtection/Tests/DataBrokerProtectionTests/DataBrokerOperationActionTests.swift +++ b/LocalPackages/DataBrokerProtection/Tests/DataBrokerProtectionTests/DataBrokerOperationActionTests.swift @@ -128,7 +128,7 @@ final class DataBrokerOperationActionTests: XCTestCase { } func testWhenActionNeedsEmail_thenExtractedProfileEmailIsSet() async { - let fillFormAction = FillFormAction(id: "1", actionType: .fillForm, selector: "#test", elements: [.init(type: "email", selector: "#email", parent: nil, multiple: nil)], dataSource: nil) + let fillFormAction = FillFormAction(id: "1", actionType: .fillForm, selector: "#test", elements: [.init(type: "email", selector: "#email", parent: nil, multiple: nil, min: nil, max: nil)], dataSource: nil) let step = Step(type: .optOut, actions: [fillFormAction]) let sut = OptOutJob( privacyConfig: PrivacyConfigurationManagingMock(), @@ -152,7 +152,7 @@ final class DataBrokerOperationActionTests: XCTestCase { } func testWhenGetEmailServiceFails_thenOperationThrows() async { - let fillFormAction = FillFormAction(id: "1", actionType: .fillForm, selector: "#test", elements: [.init(type: "email", selector: "#email", parent: nil, multiple: nil)], dataSource: nil) + let fillFormAction = FillFormAction(id: "1", actionType: .fillForm, selector: "#test", elements: [.init(type: "email", selector: "#email", parent: nil, multiple: nil, min: nil, max: nil)], dataSource: nil) let step = Step(type: .optOut, actions: [fillFormAction]) let sut = OptOutJob( privacyConfig: PrivacyConfigurationManagingMock(),