Fix pattern.cy.js flakiness
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3586137. --> Reported by: [penyaskito](https://www.drupal.org/user/959536) Related to !967 >>> <h3 id="overview">Overview</h3> <p><code>pattern.cy.js</code> is flaky.</p> <p>See <a href="https://git.drupalcode.org/project/canvas/-/jobs/9460072">https://git.drupalcode.org/project/canvas/-/jobs/9460072</a>.</p> <p>Multiple times fails to trigger the contextmenu, as seen in:</p> <pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cy:command &#10004;&nbsp; realClick {position: bottomRight}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cy:log &#10033;&nbsp; Save the entire node 1 layout as a pattern, so it can be added to a different node.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cy:command &#10004;&nbsp; get .canvas--viewport-overlay [data-canvas-component-id="sdc.canvas_test_sdc.image"]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cy:command &#10004;&nbsp; first <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cy:command &#10008;&nbsp; trigger contextmenu</pre><h3 id="proposed-resolution">Proposed resolution</h3> <p>&iquest;?</p> <h3 id="ui-changes">User interface changes</h3> <p>None</p>
issue