Skip to content

Commit b4d0b4d

Browse files
author
Sharma Elanthiriayan
committed
Review screen right bar button item
- Update accessibilityIdentifier and ensure that UI tests are passing.
1 parent 7865fc5 commit b4d0b4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WooCommerce/Classes/ViewRelated/Reviews/ReviewsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class ReviewsViewController: UIViewController {
1919
style: .plain,
2020
target: self,
2121
action: #selector(presentActionSheet))
22-
item.accessibilityIdentifier = "reviews-mark-all-as-read-button" // TODO: Change the identifier and check UI tests
22+
item.accessibilityIdentifier = "reviews-open-menu-button"
2323
item.accessibilityTraits = .button
2424
item.accessibilityLabel = Localization.MenuButton.accessibilityLabel
2525
item.accessibilityHint = Localization.MenuButton.accessibilityHint

WooCommerce/UITestsFoundation/Screens/Reviews/ReviewsScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public final class ReviewsScreen: ScreenObject {
1212

1313
public init(app: XCUIApplication = XCUIApplication()) throws {
1414
try super.init(
15-
expectedElementGetters: [ { $0.buttons["reviews-mark-all-as-read-button"] } ],
15+
expectedElementGetters: [ { $0.buttons["reviews-open-menu-button"] } ],
1616
app: app
1717
)
1818
}

0 commit comments

Comments
 (0)