1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #19648 from calixteman/bug1953290

[Editor] Fix the role of the different editors in order to make them interactive elements (bug 1953290)
This commit is contained in:
calixteman 2025-03-13 09:20:26 +01:00 committed by GitHub
commit 38cb01c629
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 41 additions and 35 deletions

View file

@ -184,7 +184,7 @@ describe("Signature Editor", () => {
// Check the aria label.
await page.waitForSelector(
`${editorSelector}[aria-label="Hello World"]`
`${editorSelector}[aria-description="Hello World"]`
);
// Edit the description.

View file

@ -361,9 +361,7 @@ describe("Stamp Editor", () => {
await page.click(saveButtonSelector);
// Check that the canvas has an aria-describedby attribute.
await page.waitForSelector(
`${editorSelector} canvas[aria-describedby]`
);
await page.waitForSelector(`${editorSelector}[aria-describedby]`);
// Wait for the alt-text button to have the correct icon.
await page.waitForSelector(`${buttonSelector}.done`);