主题与快捷键:透明主题真透明 + 完整 Typora 快捷键
This commit is contained in:
@@ -95,7 +95,7 @@ test('快捷键 Ctrl+Shift+L 大纲面板切换', async () => {
|
||||
const btns = Array.from(document.querySelectorAll('button'));
|
||||
return btns.some(b => b.textContent === '大纲');
|
||||
});
|
||||
await a.page.keyboard.press('Control+Shift+l');
|
||||
await a.page.keyboard.press('Control+Shift+1');
|
||||
await a.page.waitForTimeout(500);
|
||||
const afterPanel = await a.page.evaluate(() => {
|
||||
const btns = Array.from(document.querySelectorAll('button'));
|
||||
@@ -125,7 +125,7 @@ test('快捷键 Ctrl+Shift+, 设置面板', async () => {
|
||||
await fs.mkdir(ud, { recursive: true }); await fs.mkdir(v, { recursive: true });
|
||||
const a = await launch(ud);
|
||||
await a.invoke('vault:switch', { root: v });
|
||||
await a.page.keyboard.press('Control+Shift+Comma');
|
||||
await a.page.keyboard.press('Control+Comma');
|
||||
await expect(a.page.getByText('设置', { exact: true }).first()).toBeVisible({ timeout: 5000 });
|
||||
await a.page.keyboard.press('Escape');
|
||||
await a.app.close();
|
||||
@@ -155,7 +155,7 @@ test('编辑器快捷键:加粗+斜体+行内代码+删除线+清除格式', a
|
||||
expect(html).toContain('em');
|
||||
// 行内代码
|
||||
await a.page.keyboard.press('Control+a');
|
||||
await a.page.keyboard.press('Control+e');
|
||||
await a.page.keyboard.press('Control+Shift+Backquote');
|
||||
await a.page.waitForTimeout(100);
|
||||
html = await a.page.locator('.ProseMirror').innerHTML();
|
||||
expect(html).toContain('code');
|
||||
|
||||
Reference in New Issue
Block a user