File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed
test/fixtures/npm-registry/orgs Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ defineExpose({
236236 :result =" item"
237237 :heading-level =" headingLevel"
238238 :show-publisher =" showPublisher"
239- :index =" index"
239+ :index =" (currentPage - 1) * numericPageSize + index"
240240 :search-query =" searchQuery"
241241 :class ="
242242 index >= newSearchBatchSize &&
Original file line number Diff line number Diff line change 1+ const { chromium } = require ( 'playwright' ) ;
2+
3+ ( async ( ) => {
4+ const browser = await chromium . launch ( ) ;
5+ const page = await browser . newPage ( ) ;
6+
7+ // Navigate to the org page
8+ await page . goto ( 'http://localhost:3000/org/atcute' , { waitUntil : 'networkidle' } ) ;
9+
10+ // Wait a bit for hydration
11+ await page . waitForTimeout ( 3000 ) ;
12+
13+ // Check what elements exist
14+ const allArticles = await page . locator ( 'article' ) . count ( ) ;
15+ console . log ( 'Total articles:' , allArticles ) ;
16+
17+ // Check for data-result-index
18+ const withIndex = await page . locator ( '[data-result-index]' ) . count ( ) ;
19+ console . log ( 'Articles with data-result-index:' , withIndex ) ;
20+
21+ // Get the first few articles' HTML
22+ const firstArticle = await page . locator ( 'article' ) . first ( ) . innerHTML ( ) ;
23+ console . log ( 'First article HTML (first 500 chars):' , firstArticle . substring ( 0 , 500 ) ) ;
24+
25+ await browser . close ( ) ;
26+ } ) ( ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "@atcute/client" : " write" ,
3+ "@atcute/oauth-browser-client" : " write"
4+ }
You can’t perform that action at this time.
0 commit comments