@@ -15,17 +15,17 @@ describe('javascript-solidstart onboarding docs', () => {
1515 expect ( screen . getByRole ( 'heading' , { name : 'Verify' } ) ) . toBeInTheDocument ( ) ;
1616
1717 expect (
18- screen . getByText (
18+ screen . getAllByText (
1919 textWithMarkupMatcher ( / i m p o r t \* a s S e n t r y f r o m " @ s e n t r y \/ s o l i d s t a r t " / )
20- )
21- ) . toBeInTheDocument ( ) ;
20+ ) . length
21+ ) . toBeGreaterThanOrEqual ( 1 ) ;
2222
2323 expect (
24- screen . getAllByText ( textWithMarkupMatcher ( / s r c \/ e n t r y - c l i e n t \. t s x / ) )
25- ) . toHaveLength ( 2 ) ;
24+ screen . getAllByText ( textWithMarkupMatcher ( / s r c \/ e n t r y - c l i e n t \. t s x / ) ) . length
25+ ) . toBeGreaterThanOrEqual ( 1 ) ;
2626 expect (
27- screen . getByText ( textWithMarkupMatcher ( / p u b l i c \/ i n s t r u m e n t \. s e r v e r \. m j s / ) )
28- ) . toBeInTheDocument ( ) ;
27+ screen . getAllByText ( textWithMarkupMatcher ( / p u b l i c \/ i n s t r u m e n t \. s e r v e r \. m j s / ) ) . length
28+ ) . toBeGreaterThanOrEqual ( 1 ) ;
2929 } ) ;
3030
3131 it ( 'displays sample rates when performance and replay are selected' , ( ) => {
@@ -48,7 +48,7 @@ describe('javascript-solidstart onboarding docs', () => {
4848 ) . toBeInTheDocument ( ) ;
4949 } ) ;
5050
51- it ( 'includes browserTracingIntegration when performance is selected' , ( ) => {
51+ it ( 'includes tracing configuration when performance is selected' , ( ) => {
5252 renderWithOnboardingLayout ( docs , {
5353 selectedProducts : [
5454 ProductSolution . ERROR_MONITORING ,
@@ -57,8 +57,8 @@ describe('javascript-solidstart onboarding docs', () => {
5757 } ) ;
5858
5959 expect (
60- screen . getByText ( textWithMarkupMatcher ( / S e n t r y \. b r o w s e r T r a c i n g I n t e g r a t i o n / ) )
61- ) . toBeInTheDocument ( ) ;
60+ screen . getAllByText ( textWithMarkupMatcher ( / t r a c e s S a m p l e R a t e : 1 \. 0 / ) )
61+ ) . toHaveLength ( 2 ) ;
6262 } ) ;
6363
6464 it ( 'includes replayIntegration when replay is selected' , ( ) => {
@@ -109,14 +109,14 @@ describe('javascript-solidstart onboarding docs', () => {
109109 ) . not . toBeInTheDocument ( ) ;
110110 } ) ;
111111
112- it ( 'enables logs by setting enableLogs to true ' , ( ) => {
112+ it ( 'includes logging code in verify snippet when logs is selected ' , ( ) => {
113113 renderWithOnboardingLayout ( docs , {
114114 selectedProducts : [ ProductSolution . ERROR_MONITORING , ProductSolution . LOGS ] ,
115115 } ) ;
116116
117- expect ( screen . getAllByText ( textWithMarkupMatcher ( / e n a b l e L o g s : t r u e / ) ) ) . toHaveLength (
118- 2
119- ) ;
117+ expect (
118+ screen . getByText ( textWithMarkupMatcher ( / S e n t r y \. l o g g e r \. i n f o / ) )
119+ ) . toBeInTheDocument ( ) ;
120120 } ) ;
121121
122122 it ( 'shows Logging Integrations in next steps when logs is selected' , ( ) => {
@@ -154,15 +154,4 @@ describe('javascript-solidstart onboarding docs', () => {
154154 expect ( docs . metricsOnboarding ?. configure ) . toBeDefined ( ) ;
155155 expect ( docs . metricsOnboarding ?. verify ) . toBeDefined ( ) ;
156156 } ) ;
157-
158- it ( 'does not show Metrics in next steps when metrics is not selected' , ( ) => {
159- renderWithOnboardingLayout ( docs , {
160- selectedProducts : [
161- ProductSolution . ERROR_MONITORING ,
162- ProductSolution . PERFORMANCE_MONITORING ,
163- ] ,
164- } ) ;
165-
166- expect ( screen . queryByText ( 'Metrics' ) ) . not . toBeInTheDocument ( ) ;
167- } ) ;
168157} ) ;
0 commit comments