File tree Expand file tree Collapse file tree
src/app/docs/[library]/[section]/[slug] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ test.describe('Docs slug page', () => {
6464 await expect ( page . getByText ( / L a n g G r a p h \s + · \s + G e t t i n g S t a r t e d / i) . first ( ) ) . toBeVisible ( ) ;
6565 // Prev/Next: introduction is the first page, so a "Next →" card is present
6666 await expect ( page . getByText ( 'Next →' ) . first ( ) ) . toBeVisible ( ) ;
67+ // Per-page LLM actions trigger
68+ await expect ( page . locator ( 'main button[aria-label="Page actions"]' ) . first ( ) ) . toBeVisible ( ) ;
6769 } ) ;
6870
6971 test ( 'breadcrumb shows the library + page title' , async ( { page } ) => {
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { MdxRenderer } from '../../../../../components/docs/MdxRenderer';
66import { DocsSearch } from '../../../../../components/docs/DocsSearch' ;
77import { DocsBreadcrumb } from '../../../../../components/docs/DocsBreadcrumb' ;
88import { DocsPageHeader } from '../../../../../components/docs/DocsPageHeader' ;
9+ import { PageActions } from '../../../../../components/docs/PageActions' ;
910import { DocsPrevNext } from '../../../../../components/docs/DocsPrevNext' ;
1011import { getDocBySlug , getAllDocSlugs , getDocMetadata } from '../../../../../lib/docs' ;
1112import { ApiDocRenderer , type ApiDocEntry } from '../../../../../components/docs/ApiDocRenderer' ;
@@ -74,7 +75,11 @@ export default async function DocsPage({ params }: DocsRouteProps) {
7475 < div className = "flex-1 min-w-0" >
7576 < div className = "px-6 md:px-12 pt-6" >
7677 < DocsBreadcrumb library = { library as LibraryId } section = { section } slug = { slug } title = { doc . title } />
77- < DocsPageHeader library = { library as LibraryId } section = { section } />
78+ < DocsPageHeader
79+ library = { library as LibraryId }
80+ section = { section }
81+ actions = { < PageActions library = { library } section = { section } slug = { slug } /> }
82+ />
7883 </ div >
7984 < article className = "flex-1 py-8 px-4 sm:px-6 md:px-12 md:max-w-3xl overflow-x-hidden" >
8085 < MdxRenderer
You can’t perform that action at this time.
0 commit comments