fix(editor): prevent Tab key propagation outside editor (#11531)

Closes: BS-2964
This commit is contained in:
Saul-Mirone
2025-04-08 10:03:06 +00:00
parent 280227fa5f
commit 780c35eabe
5 changed files with 75 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
import type { Page } from '@playwright/test';
export function toolbarButtons(page: Page) {
const toolbar = page.locator('affine-toolbar-widget editor-toolbar');
const switchViewBtn = toolbar.getByLabel('Switch view');
const inlineViewBtn = toolbar.getByLabel('Inline view');
const cardViewBtn = toolbar.getByLabel('Card view');
const embedViewBtn = toolbar.getByLabel('Embed view');
return {
toolbar,
switchViewBtn,
inlineViewBtn,
cardViewBtn,
embedViewBtn,
};
}