File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,10 +101,10 @@ describe('FluxDocumentationServer Integration', () => {
101101 const response = await global . fetch ( 'https://fluxui.dev/docs' ) ;
102102 const html = await response . text ( ) ;
103103
104- // Verify fixture contains expected links
105- assert . ok ( html . includes ( 'https://fluxui.dev/components/button' ) ) ;
106- assert . ok ( html . includes ( 'https://fluxui.dev/components/input' ) ) ;
107- assert . ok ( html . includes ( 'https://fluxui.dev/components/modal' ) ) ;
104+ // Verify fixture contains expected component links (check href attribute to avoid URL substring ambiguity)
105+ assert . ok ( html . includes ( 'href=" https://fluxui.dev/components/button" ' ) ) ;
106+ assert . ok ( html . includes ( 'href=" https://fluxui.dev/components/input" ' ) ) ;
107+ assert . ok ( html . includes ( 'href=" https://fluxui.dev/components/modal" ' ) ) ;
108108
109109 global . fetch = originalFetch ;
110110 } ) ;
You can’t perform that action at this time.
0 commit comments