@@ -31,7 +31,7 @@ struct mParticle_Rokt_SwiftTests {
3131 )
3232
3333 // Then
34- #expect( layout. body != nil , " Layout body should not be nil " )
34+ #expect( layout. roktLayout != nil , " Layout.roktLayout should not be nil " )
3535 }
3636
3737 @MainActor @available ( iOS 15 , * )
@@ -58,7 +58,7 @@ struct mParticle_Rokt_SwiftTests {
5858 )
5959
6060 // Then
61- #expect( layout. body != nil , " Layout body should not be nil " )
61+ #expect( layout. roktLayout != nil , " Layout.roktLayout should not be nil " )
6262 }
6363
6464 @MainActor @available ( iOS 15 , * )
@@ -76,7 +76,7 @@ struct mParticle_Rokt_SwiftTests {
7676 )
7777
7878 // Then
79- #expect( layout. body != nil , " Layout should handle empty attributes " )
79+ #expect( layout. roktLayout != nil , " Layout should handle empty attributes " )
8080 }
8181
8282 @MainActor @available ( iOS 15 , * )
@@ -94,7 +94,7 @@ struct mParticle_Rokt_SwiftTests {
9494 )
9595
9696 // Then
97- #expect( layout. body != nil , " Layout should handle sandbox attribute " )
97+ #expect( layout. roktLayout != nil , " Layout should handle sandbox attribute " )
9898 }
9999
100100 // MARK: - Attribute Preparation Tests
@@ -183,25 +183,7 @@ struct mParticle_Rokt_SwiftTests {
183183 )
184184
185185 // Then
186- #expect( layout is any View , " MPRoktLayout should conform to SwiftUI View protocol " )
187- }
188-
189- @MainActor @available ( iOS 15 , * )
190- @Test func testMPRoktLayoutBodyProperty( ) {
191- // Given
192- let sdkTriggered = Binding . constant ( false )
193- let attributes : [ String : String ] = [ " test " : " value " ]
194-
195- // When
196- let layout = MPRoktLayout (
197- sdkTriggered: sdkTriggered,
198- locationName: " test " ,
199- attributes: attributes
200- )
201-
202- // Then
203- let body = layout. body
204- #expect( body != nil , " Layout body should be accessible " )
186+ #expect( layout. roktLayout is any View , " MPRoktLayout should conform to SwiftUI View protocol " )
205187 }
206188
207189 // MARK: - Parameter Validation Tests
@@ -212,16 +194,16 @@ struct mParticle_Rokt_SwiftTests {
212194 let sdkTriggered = Binding . constant ( false )
213195 let longLocationName = String ( repeating: " a " , count: 1000 )
214196 let attributes : [ String : String ] = [ " test " : " value " ]
215-
197+
216198 // When
217199 let layout = MPRoktLayout (
218200 sdkTriggered: sdkTriggered,
219201 locationName: longLocationName,
220202 attributes: attributes
221203 )
222-
204+
223205 // Then
224- #expect( layout. body != nil , " Layout should handle long location names " )
206+ #expect( layout. roktLayout != nil , " Layout should handle long location names " )
225207 }
226208
227209 @MainActor @available ( iOS 15 , * )
@@ -242,7 +224,7 @@ struct mParticle_Rokt_SwiftTests {
242224 )
243225
244226 // Then
245- #expect( layout. body != nil , " Layout should handle special characters and unicode " )
227+ #expect( layout. roktLayout != nil , " Layout should handle special characters and unicode " )
246228 }
247229
248230 // MARK: - State Management Tests
@@ -261,13 +243,13 @@ struct mParticle_Rokt_SwiftTests {
261243 )
262244
263245 // Then
264- #expect( layout. body != nil , " Layout should be created with initial state " )
246+ #expect( layout. roktLayout != nil , " Layout should be created with initial state " )
265247
266248 // When state changes
267249 sdkTriggered. wrappedValue = true
268250
269251 // Then
270- #expect( layout. body != nil , " Layout should handle state changes " )
252+ #expect( layout. roktLayout != nil , " Layout should handle state changes " )
271253 }
272254
273255 // MARK: - Integration Tests
@@ -291,7 +273,7 @@ struct mParticle_Rokt_SwiftTests {
291273 )
292274
293275 // Then
294- #expect( layout. body != nil , " Layout should properly integrate attribute processing " )
276+ #expect( layout. roktLayout == nil , " Layout should attempt to identify user attributes and fail " )
295277 }
296278
297279 @MainActor @available ( iOS 15 , * )
@@ -325,6 +307,6 @@ struct mParticle_Rokt_SwiftTests {
325307 )
326308
327309 // Then
328- #expect( layout. body != nil , " Layout should handle complex configurations " )
310+ #expect( layout. roktLayout != nil , " Layout should handle complex configurations " )
329311 }
330312}
0 commit comments