MCPcopy
hub / github.com/mailvelope/mailvelope / toggleExtraKey

Function toggleExtraKey

test/integration/components/editor/editor.test.js:110–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

editor.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected