@@ -59,65 +59,9 @@ test("react_devtools-02: RDT integrations (Chromium)", async ({
5959 const componentNames = await getAllVisibleComponentNames ( page ) ;
6060
6161 /*
62- In production, the first 20-ish component names normally look like this (flattened):
63- [
64- "ea",
65- "J",
66- "X",
67- "z",
68- "Context.Provider",
69- "Context.Provider",
70- "Anonymous",
71- "Context.Provider",
72- "Context.Provider",
73- "Context.Provider",
74- "Context.Provider",
75- "n8",
76- "O",
77- "Anonymous",
78- "Anonymous"
79- "Auth0Provider",
80- "iU",
81- "Context.Provider",
82- "Context.Consumer",
83- "da",
84- "dn"
85- "Anonymous",
86- "Anonymous"
87- ]
88-
89- In development, however, they are (minus dev-only components):
90-
91- [
92- 'Root',
93- 'Head',
94- 'AppContainer',
95- 'Container',
96- 'AppRouterContext.Provider',
97- 'SearchParamsContext.Provider',
98- 'PathnameContextProviderAdapter',
99- 'PathnameContext.Provider',
100- 'RouterContext.Provider',
101- 'HeadManagerContext.Provider',
102- 'ImageConfigContext.Provider',
103- 'App',
104- 'SystemProvider',
105- 'Head',
106- 'SideEffect',
107- 'Auth0Provider',
108- 'Auth0Provider', // twice? wut?
109- 'Context.Provider',
110- 'Context.Consumer',
111- 'SSRRecordingPage',
112- 'RecordingHead',
113- 'Head',
114- 'SideEffect'
115- ]
116-
117-
118- In practice, the routine's name processing currently lose the specific context names,
119- and a couple components aren't getting their names mapped.
120- But, assuming the routine name mapping worked, we _should_ end up with this:
62+ The first 20-ish component names normally look like the list below (flattened)
63+ In practice, the routine's name processing currently lose the specific context names,
64+ but assuming the routine name mapping worked, we _should_ end up with this:
12165 */
12266 const expectedComponentNames = [
12367 "Root" ,
@@ -136,7 +80,7 @@ test("react_devtools-02: RDT integrations (Chromium)", async ({
13680 "Head" ,
13781 "SideEffect" ,
13882 "Auth0Provider" ,
139- "iN " ,
83+ "Auth0Provider " ,
14084 "Context.Provider" ,
14185 "Context.Consumer" ,
14286 "SSRRecordingPage" ,
@@ -240,18 +184,18 @@ test("react_devtools-02: RDT integrations (Chromium)", async ({
240184 // Re-select "App" just so we're back at the top
241185 await getReactComponents ( page ) . first ( ) . click ( ) ;
242186
243- // Should render our `<LazyOffscreen >` components, but _not_ `<Offscreen >`,
187+ // Should render our `<LazyActivity >` components, but _not_ `<Activity >`,
244188 // because RDT already filters those out by default
245- debugPrint ( page , `Checking rendering of <Offscreen > components` ) ;
189+ debugPrint ( page , `Checking rendering of <Activity > components` ) ;
246190
247- await searchComponents ( page , "Offscreen " ) ;
191+ await searchComponents ( page , "Activity " ) ;
248192 await verifySearchResults ( page , {
249193 currentNumber : 1 ,
250194 totalNumber : 6 ,
251195 } ) ;
252196
253197 const offscreenSearchComponentNames = await getAllVisibleComponentNames ( page ) ;
254198 expect ( offscreenSearchComponentNames . length ) . toBeGreaterThan ( 0 ) ;
255- expect ( offscreenSearchComponentNames . includes ( "LazyOffscreen " ) ) . toBe ( true ) ;
256- expect ( offscreenSearchComponentNames . includes ( "Offscreen " ) ) . toBe ( false ) ;
199+ expect ( offscreenSearchComponentNames . includes ( "LazyActivity " ) ) . toBe ( true ) ;
200+ expect ( offscreenSearchComponentNames . includes ( "Activity " ) ) . toBe ( false ) ;
257201} ) ;
0 commit comments