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
19 lines
793 B
TypeScript
19 lines
793 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
import { sendShortcut } from './helpers'
|
|
|
|
test.describe('AI panel shortcut', () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.route('**/api/vault/ping', route => route.fulfill({ status: 503 }))
|
|
await page.goto('/')
|
|
await expect(page.locator('[data-testid="note-list-container"]')).toBeVisible({ timeout: 5_000 })
|
|
})
|
|
|
|
test('Cmd+Shift+L opens the AI panel from the editor', async ({ page }) => {
|
|
await page.locator('.app__note-list .cursor-pointer').first().click()
|
|
await page.locator('.bn-editor').click()
|
|
await sendShortcut(page, 'L', ['Meta', 'Shift'])
|
|
await expect(page.getByTestId('ai-panel')).toBeVisible({ timeout: 3_000 })
|
|
await expect(page.getByTitle('Close AI panel')).toBeVisible()
|
|
})
|
|
})
|