diff --git a/firefox-ios/Client/Application/AccessibilityIdentifiers.swift b/firefox-ios/Client/Application/AccessibilityIdentifiers.swift index 05e19350311d..2e79a1a7180f 100644 --- a/firefox-ios/Client/Application/AccessibilityIdentifiers.swift +++ b/firefox-ios/Client/Application/AccessibilityIdentifiers.swift @@ -123,8 +123,8 @@ public struct AccessibilityIdentifiers { static let itemCell = "JumpBackInCell" } - struct RecentlySaved { - static let itemCell = "RecentlySavedCell" + struct Bookmarks { + static let itemCell = "BookmarksCell" } struct SyncedTab { diff --git a/firefox-ios/Client/Frontend/Home/Bookmarks/BookmarksCell.swift b/firefox-ios/Client/Frontend/Home/Bookmarks/BookmarksCell.swift index 73f0c3fa31fa..a19d2d1f67b5 100644 --- a/firefox-ios/Client/Frontend/Home/Bookmarks/BookmarksCell.swift +++ b/firefox-ios/Client/Frontend/Home/Bookmarks/BookmarksCell.swift @@ -35,7 +35,7 @@ class BookmarksCell: UICollectionViewCell, ReusableCell { super.init(frame: .zero) isAccessibilityElement = true - accessibilityIdentifier = AccessibilityIdentifiers.FirefoxHomepage.RecentlySaved.itemCell + accessibilityIdentifier = AccessibilityIdentifiers.FirefoxHomepage.Bookmarks.itemCell setupLayout() } @@ -55,7 +55,7 @@ class BookmarksCell: UICollectionViewCell, ReusableCell { cornerRadius: HomepageViewModel.UX.generalCornerRadius).cgPath } - func configure(viewModel: RecentlySavedCellViewModel, theme: Theme) { + func configure(viewModel: BookmarksCellViewModel, theme: Theme) { let heroImageViewModel = HomepageHeroImageViewModel(urlStringRequest: viewModel.site.url, heroImageSize: UX.heroImageSize) heroImageView.setHeroImage(heroImageViewModel) diff --git a/firefox-ios/Client/Frontend/Home/Bookmarks/BookmarksViewModel.swift b/firefox-ios/Client/Frontend/Home/Bookmarks/BookmarksViewModel.swift index 1c0d9f7ced57..719183a9f9d0 100644 --- a/firefox-ios/Client/Frontend/Home/Bookmarks/BookmarksViewModel.swift +++ b/firefox-ios/Client/Frontend/Home/Bookmarks/BookmarksViewModel.swift @@ -9,7 +9,7 @@ import Shared import enum MozillaAppServices.VisitType -struct RecentlySavedCellViewModel { +struct BookmarksCellViewModel { let site: Site var accessibilityLabel: String { return "\(site.title)" @@ -132,7 +132,7 @@ extension RecentlySavedViewModel: HomepageSectionHandler { if let item = recentItems[safe: indexPath.row] { let site = Site(url: item.url, title: item.title, bookmarked: true) - let viewModel = RecentlySavedCellViewModel(site: site) + let viewModel = BookmarksCellViewModel(site: site) recentlySavedCell.configure(viewModel: viewModel, theme: theme) }