Some checks are pending
Auto-update PR branches / Update open PR branches (push) Waiting to run
CI / Frontend Static Quality Checks (push) Waiting to run
CI / Frontend Tests & Coverage (push) Waiting to run
CI / Rust Tests & Quality Checks (push) Waiting to run
CI / Linux build verification (push) Waiting to run
Deploy docs / Build VitePress site (push) Waiting to run
Deploy docs / Deploy to GitHub Pages (push) Blocked by required conditions
Release (Alpha) / Compute alpha version (push) Waiting to run
Release (Alpha) / Build release artifacts (push) Blocked by required conditions
Release (Alpha) / GitHub Release (alpha) (push) Blocked by required conditions
Release (Alpha) / Update docs and release pages (push) Blocked by required conditions
Source snapshot: 514ab1975951d94342ea38e64101d5a0f1c51c77
20 lines
687 B
TypeScript
20 lines
687 B
TypeScript
import { test } from '@playwright/test'
|
|
|
|
test('find note selectors', async ({ page }) => {
|
|
await page.setViewportSize({ width: 1440, height: 900 })
|
|
await page.goto('/', { waitUntil: 'networkidle' })
|
|
await page.waitForTimeout(3000)
|
|
|
|
// Get all clickable elements with their text
|
|
const info = await page.evaluate(() => {
|
|
const items = document.querySelectorAll('[class*="cursor-pointer"]')
|
|
return Array.from(items).slice(0, 20).map(el => ({
|
|
tag: el.tagName,
|
|
text: el.textContent?.trim().slice(0, 50),
|
|
cls: el.className.toString().slice(0, 80),
|
|
rect: el.getBoundingClientRect().toJSON()
|
|
}))
|
|
})
|
|
console.log(JSON.stringify(info, null, 2))
|
|
})
|