Skip to content

Commit cf5d2f1

Browse files
committed
fix: add missing httpTransport e2e snapshots
1 parent 2766227 commit cf5d2f1

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

tests/e2e/__snapshots__/httpTransport.test.ts.snap

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ Use these parameters to filter the list of PatternFly component schemas.
6969
}
7070
`;
7171
72+
exports[`Builtin tools, HTTP transport should expose expected tools and stable shape: tools 1`] = `
73+
{
74+
"toolNames": [
75+
"searchPatternFlyDocs",
76+
"useAiHelpersSkill",
77+
"usePatternFlyDocs",
78+
],
79+
}
80+
`;
81+
7282
exports[`Builtin tools, HTTP transport should concatenate headers and separator with two remote files 1`] = `
7383
"# Content for https://www.patternfly.org/notARealPath/AboutModal.md
7484
Source: https://www.patternfly.org/notARealPath/AboutModal.md
@@ -87,6 +97,44 @@ Source: https://www.patternfly.org/notARealPath/ChartLegend.md
8797
This is a test document for mocking remote HTTP requests."
8898
`;
8999
100+
exports[`Builtin tools, HTTP transport should return expected markdown structure for search results: markdown 1`] = `
101+
"# Search results for PatternFly version "v6" and "button". Showing 2 exact matches.
102+
1. **button**:
103+
"usePatternFlyDocs" resource parameter "name" and "URLs"
104+
- **Name**: button
105+
- **URLs**:
106+
- [Button - (v6) - Design Guidelines for the button component.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/components/button/button.md)
107+
- [Button - (v6) - Accessibility for the button component.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/components/accessibility/button/button.md)
108+
- [Button - (v6) - Examples for the button component.](https://raw.githubusercontent.com/patternfly/patternfly-react/476782a298df81cb78de7f3cd804f3ff8f33993c/packages/react-core/src/components/Button/examples/Button.md)
109+
- **Resources**:
110+
- **URI**: patternfly://docs/button?version=v6
111+
- **JSON Schemas**: patternfly://schemas/button?version=v6
112+
113+
2. **patterns**:
114+
"usePatternFlyDocs" resource parameter "name" and "URLs"
115+
- **Name**: patterns
116+
- **URLs**:
117+
- [Actions - (v6) - The best practices for designing processes that a user can trigger by clicking or selecting a UI element, such as a button or link.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/actions/actions.md)
118+
- [Bulk selection - (v6) - A defined method for users to select or deselect multiple items within complex content views or data tables.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/bulk-selection/bulk-selection.md)
119+
- [Card view - (v6) - A structured layout designed to display a grid of cards in a gallery, optimizing for browsing and interaction.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/card-view/card-view.md)
120+
- [Component usage and behavior - (v6) - Guidance on how to choose between similar components and use them appropriately based on specific user contexts and use cases.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/usage-and-behavior.md)
121+
- [Dashboard - (v6) - A highly customizable layout that serves as a high-level overview of key metrics or performance indicators.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/dashboard/dashboard.md)
122+
- [Filters - (v6) - The design rules for implementing filtering mechanisms that allow users to narrow down content from large datasets or complex views.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/filters/filters.md)
123+
- [Primary-detail - (v6) - A two-pane layout that shows a list of items and corresponding details for the currently selected item.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/primary-detail/primary-detail.md)
124+
- [Status and severity - (v6) - Guidance on the consistent and accessible use of color and iconography to communicate status and severity across the UI.](https://raw.githubusercontent.com/patternfly/patternfly-org/2d5fec39ddb8aa32ce78c9a63cdfc1653692b193/packages/documentation-site/patternfly-docs/content/patterns/status-and-severity/status-and-severity.md)
125+
- **Resources**:
126+
- **URI**: patternfly://docs/patterns?version=v6
127+
128+
129+
130+
---
131+
132+
133+
**Important**:
134+
- Use the "usePatternFlyDocs" tool with the above names and URLs to fetch resource content.
135+
- Use a search all ("*") to find all available resources."
136+
`;
137+
90138
exports[`Builtin tools, HTTP transport should initialize MCP session over HTTP 1`] = `
91139
{
92140
"baseUrl": "http://127.0.0.1:8000",

0 commit comments

Comments
 (0)