mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
[Editor] in the signature UI, disable the description input if there is no signature (bug 1956114)
This commit is contained in:
parent
828398f60f
commit
62df96894d
3 changed files with 7 additions and 0 deletions
|
@ -93,9 +93,11 @@ describe("Signature Editor", () => {
|
|||
);
|
||||
expect(description).withContext(browserName).toEqual("");
|
||||
await page.waitForSelector(`${addButtonSelector}:disabled`);
|
||||
await page.waitForSelector("#addSignatureDescInput:disabled");
|
||||
|
||||
await page.type("#addSignatureTypeInput", "PDF.js");
|
||||
await page.waitForSelector(`${addButtonSelector}:not(:disabled)`);
|
||||
await page.waitForSelector("#addSignatureDescInput:not(:disabled)");
|
||||
|
||||
// The save button should be enabled now.
|
||||
await page.waitForSelector(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue