Auto-retry for Cypress failing when test name spans multiple lines in output
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3579731. -->
Reported by: [wim leers](https://www.drupal.org/user/99777)
Related to !738
>>>
<h3 id="overview">Overview</h3>
<p><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3571997" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3571997</a></span> introduced auto-retry.</p>
<p>It worked fine for a while.</p>
<p>Today</p>
<pre> ├────────────────────────────────────────────────────────────────────────────────────────────────┤<br> │ ✖ media-library-component-instance.cy 02:06 2 1 1 - - │<br> │ .js │<br> ├────────────────────────────────────────────────────────────────────────────────────────────────┤<br> │ ✔ multi-select-components.cy.js 00:17 6 6 - - - │<br> ├────────────────────────────────────────────────────────────────────────────────────────────────┤<br> │ ✔ overlay-ui.cy.js 00:10 1 1 - - - │<br> ├────────────────────────────────────────────────────────────────────────────────────────────────┤<br> │ ✔ prop-types.cy.js 03:46 19 19 - - - │<br> ├────────────────────────────────────────────────────────────────────────────────────────────────┤<br> │ ✔ routing.cy.js 00:09 3 3 - - - │<br> ├────────────────────────────────────────────────────────────────────────────────────────────────┤<br> │ ✔ vh-units.cy.js 00:18 1 1 - - - │<br> └────────────────────────────────────────────────────────────────────────────────────────────────┘<br> ✖ 1 of 11 failed (9%) 10:46 43 42 1 - - <br>$ grep "✖.*autocomplete-props\.cy\.js" $CI_PROJECT_DIR/ui/cypress.log && exit 112 || true<br>$ grep "✖.*copy-and-paste\.cy\.js" $CI_PROJECT_DIR/ui/cypress.log && exit 112 || true<br>$ grep "✖.*global-regions-interact\.cy\.js" $CI_PROJECT_DIR/ui/cypress.log && exit 112 || true<br>$ grep "✖.*media-library-component-instance\.cy\.js" $CI_PROJECT_DIR/ui/cypress.log && exit 112 || true<br>$ exit $EXIT_CODE</pre><p>
— <a href="https://git.drupalcode.org/project/canvas/-/jobs/8956930#L4144">https://git.drupalcode.org/project/canvas/-/jobs/8956930#L4144</a></p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>Simplify the match so that it matches the part on the first line 🫠</p>
<h3 id="ui-changes">User interface changes</h3>
<p>None.</p>
issue