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> cy:command ✔ realClick {position: bottomRight}<br> cy:log ✱ Save the entire node 1 layout as a pattern, so it can be added to a different node.<br> cy:command ✔ get .canvas--viewport-overlay [data-canvas-component-id="sdc.canvas_test_sdc.image"]<br> cy:command ✔ first <br> cy:command ✘ trigger contextmenu</pre><h3 id="proposed-resolution">Proposed resolution</h3>
<p>¿?</p>
<h3 id="ui-changes">User interface changes</h3>
<p>None</p>
issue