Skip to content

Commit 9ca59a3

Browse files
committed
fix(notifications): fix verifyRequestNotificationsPermissions integration test (#2797)
1 parent 9eb4200 commit 9ca59a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AmplifyPlugins/Notifications/Push/Tests/PushNotificationHostApp/PushNotificationHostAppUITests/PushNotificationHostAppUITests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ final class PushNotificationHostAppUITests: XCTestCase {
3636
}
3737

3838
@MainActor
39-
func testInitAmplify_withPushNotificationPlugin_verifyRegisterRemoteNotification() async throws {
39+
func testInitAmplify_withPushNotificationPlugin_verifyRequestNotificationsPermissions() async throws {
4040
initAmplify()
4141

4242
grantNotificationPermissionIfNeeded()
4343

4444
let expectedEvent = anyElementContains(
45-
text: "Notifications.Push.registerForNotifications = Optional(true)",
45+
text: "Notifications.Push.requestNotificationsPermissions = Optional(true)",
4646
scope: app
4747
)
4848
if !expectedEvent.waitForExistence(timeout: 3) {
49-
XCTFail("Failed to receive registerForNotification event from hub")
49+
XCTFail("Failed to receive requestNotificationsPermissions event from hub")
5050
}
5151
}
5252

0 commit comments

Comments
 (0)