| 108 | * keeping them visible mirrors how a user would interact with the UI). |
| 109 | */ |
| 110 | const toggleExtraKey = async () => { |
| 111 | await page.evaluate(() => { |
| 112 | // Expand the sign-options Collapse so the checkbox is visible/active. |
| 113 | const toggle = document.querySelector('button[aria-controls="sign-msg-option"]'); |
| 114 | toggle?.click(); |
| 115 | }); |
| 116 | await page.evaluate(() => new Promise(r => setTimeout(r, 30))); |
| 117 | await page.evaluate(() => document.querySelector('#extraKeyCheck').click()); |
| 118 | await page.evaluate(() => new Promise(r => setTimeout(r, 30))); |
| 119 | }; |
| 120 | |
| 121 | // ------------------------------------------------------------------ |
| 122 | // A. Mount + initial wiring |