mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
fix(a11y): add editor name to editor aria-label (#60529)
This commit is contained in:
@@ -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 ({
|
||||
|
||||
Reference in New Issue
Block a user