mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(editor): prevent Tab key propagation outside editor (#11531)
Closes: BS-2964
This commit is contained in:
17
tests/kit/src/bs/linked-toolbar.ts
Normal file
17
tests/kit/src/bs/linked-toolbar.ts
Normal 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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user