fix(a11y): add editor name to editor aria-label (#60529)

This commit is contained in:
Huyen Nguyen
2025-06-23 20:53:33 +07:00
committed by GitHub
parent cb231abaaa
commit 723be55e62
3 changed files with 35 additions and 12 deletions

View File

@@ -1,9 +1,7 @@
import { type Page } from '@playwright/test';
export const getEditors = (page: Page) => {
return page.getByLabel(
'Editor content;Press Alt+F1 for Accessibility Options'
);
return page.getByRole('textbox', { name: /editor content/i });
};
export const focusEditor = async ({