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:
commit
38cb01c629
9 changed files with 41 additions and 35 deletions
|
@ -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.
|
||||
|
|
|
@ -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`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue