[Editor] Add an aria label to an added signature (bug 1952571)
This commit is contained in:
parent
febf59ce75
commit
b5a7b827b5
@ -259,6 +259,7 @@ class SignatureEditor extends DrawingEditor {
|
||||
const { outline } = (this.#signatureData = data);
|
||||
this.#isExtracted = outline instanceof ContourDrawOutline;
|
||||
this.#description = description;
|
||||
this.div.setAttribute("aria-label", description);
|
||||
let drawingOptions;
|
||||
if (this.#isExtracted) {
|
||||
drawingOptions = SignatureEditor.getDefaultDrawingOptions();
|
||||
|
||||
@ -182,6 +182,11 @@ describe("Signature Editor", () => {
|
||||
`.altText.editDescription[title="Hello World"]`
|
||||
);
|
||||
|
||||
// Check the aria label.
|
||||
await page.waitForSelector(
|
||||
`${editorSelector}[aria-label="Hello World"]`
|
||||
);
|
||||
|
||||
// Edit the description.
|
||||
await page.click(`.altText.editDescription`);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user