Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amddg44 committed May 2, 2024
1 parent 2335578 commit 67be5f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGo/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -5619,7 +5619,7 @@
},
"autofill.usernames-and-passwords" : {
"comment" : "Autofill autosaved data type",
"extractionState" : "extracted_with_value",
"extractionState" : "stale",
"localizations" : {
"de" : {
"stringUnit" : {
Expand Down Expand Up @@ -5679,7 +5679,7 @@
},
"autofill.view-autofill-content" : {
"comment" : "View Autofill Content Button name in the autofill settings",
"extractionState" : "extracted_with_value",
"extractionState" : "stale",
"localizations" : {
"de" : {
"stringUnit" : {
Expand Down
9 changes: 5 additions & 4 deletions UnitTests/DataImport/DataImportViewModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ import XCTest
xctDescr = "\(source): " + xctDescr

XCTAssertEqual(model.description, expectation.description, xctDescr)
XCTAssertEqual(model.actionButton, .done, xctDescr)
XCTAssertEqual(model.actionButton, .next(.shortcuts), xctDescr)
XCTAssertNil(model.secondaryButton, xctDescr)
}
}
Expand Down Expand Up @@ -1181,7 +1181,7 @@ import XCTest
// expect Final Summary
let expectation = DataImportViewModel(importSource: source, screen: .summary([.bookmarks], isFileImport: true), summary: [bookmarksSummary, result.map { .init(.bookmarks, $0) }].compactMap { $0 })
XCTAssertEqual(model.description, expectation.description, xctDescr)
XCTAssertEqual(model.actionButton, .done, xctDescr)
XCTAssertEqual(model.actionButton, .next(.shortcuts), xctDescr)
XCTAssertNil(model.secondaryButton, xctDescr)
}
}
Expand Down Expand Up @@ -1410,7 +1410,7 @@ import XCTest
// expect Final Summary
let expectation = DataImportViewModel(importSource: source, screen: .summary([.passwords], isFileImport: true), summary: [bookmarksSummary, passwordsSummary, bookmarksFileImportSummary, result.map { .init(.passwords, $0) }].compactMap { $0 })
XCTAssertEqual(model.description, expectation.description, xctDescr)
XCTAssertEqual(model.actionButton, .done, xctDescr)
XCTAssertEqual(model.actionButton, .next(.shortcuts), xctDescr)
XCTAssertNil(model.secondaryButton, xctDescr)
}
}
Expand Down Expand Up @@ -1447,7 +1447,7 @@ import XCTest
// expect Final Summary
let expectation = DataImportViewModel(importSource: source, screen: .summary([.passwords], isFileImport: true), summary: [passwordsSummary, result.map { .init(.passwords, $0) }].compactMap { $0 })
XCTAssertEqual(model.description, expectation.description, xctDescr)
XCTAssertEqual(model.actionButton, .done, xctDescr)
XCTAssertEqual(model.actionButton, .next(.shortcuts), xctDescr)
XCTAssertNil(model.secondaryButton, xctDescr)
}
}
Expand Down Expand Up @@ -1828,6 +1828,7 @@ extension DataImportViewModel.Screen: CustomStringConvertible {
case .summary(let dataTypes, isFileImport: true):
".summary([\(dataTypes.map { "." + $0.rawValue }.sorted().joined(separator: ", "))], isFileImport: true)"
case .feedback: ".feedback"
case .shortcuts: ".shortcuts"
}
}
}
Expand Down

0 comments on commit 67be5f1

Please sign in to comment.