Skip to content

Commit 6158be8

Browse files
committed
try to use the webauthn approach
1 parent c207296 commit 6158be8

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

AmplifyPlugins/Notifications/Push/Tests/PushNotificationHostApp/PushNotificationGen2HostApp.xctestplan

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
},
2424
"testTargets" : [
2525
{
26-
"parallelizable" : true,
2726
"target" : {
2827
"containerPath" : "container:PushNotificationHostApp.xcodeproj",
2928
"identifier" : "6084F1AB2967B87200434CBF",

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ final class PushNotificationHostAppUITests: XCTestCase {
1414

1515
lazy var deviceIdentifier: String? = {
1616
let paths = Bundle.main.bundleURL.pathComponents
17-
guard let index = paths.firstIndex(where: { $0 == "XCTestDevices" }),
18-
let identifier = paths.dropFirst(index + 1).first
19-
else {
20-
XCTFail("Failed to get device identifier")
21-
return nil
17+
18+
// Look for Devices (like WebAuthn tests)
19+
if let index = paths.firstIndex(where: { $0 == "Devices" }),
20+
let identifier = paths.dropFirst(index + 1).first {
21+
return identifier
2222
}
23-
24-
return identifier
23+
24+
XCTFail("Failed to get device identifier")
25+
return nil
2526
}()
2627

2728
@MainActor

AmplifyPlugins/Notifications/Push/Tests/PushNotificationHostApp/PushNotificationWatchTests.xctestplan

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"testTargets" : [
1515
{
16-
"parallelizable" : true,
1716
"target" : {
1817
"containerPath" : "container:PushNotificationHostApp.xcodeproj",
1918
"identifier" : "6875F9882A3CD258001C9AAF",

0 commit comments

Comments
 (0)