Add W3C compliant JS testing
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3462681. -->
Reported by: [alexpott](https://www.drupal.org/user/157725)
Related to !248
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Once <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-2"><a href="https://www.drupal.org/project/drupal/issues/3421202" title="Status: Fixed">#3421202: Enable W3C-compliant webdriver testing</a></span> lands we will be able to run tests using selenium and the latest Chrome. We should support that in the template as eventually non-W3C testing will be deprecated.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ul>
<li>Update <code>.testing-job-base</code> to use the new Selenium driver and set the variables for the latest Chrome browser </li>
<li>These will be the default for all test jobs, but temporarily revert to the legacy values for variants using Drupal 10 and lower</li>
<li>This means that only "Nightwatch Next Major" and "PHPUnit Next Major" will use the new driver at the moment</li>
<li>When Drupal 11 becomes 'current' then all jobs will use the new driver except 'Nightwatch Previous Major' and 'PHPUnit Previous Major'</li>
</ul>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>If a contrib project does not want to test against W3C-compliant driver, the values can be reverted. Instructions for this are in the <a href="https://project.pages.drupalcode.org/gitlab_templates/jobs/nightwatch/#web-driver-versions">Nightwatch</a> and <a href="https://project.pages.drupalcode.org/gitlab_templates/jobs/phpunit/#web-driver-versions">PHPUnit</a> documentation pages</p>
> Related issue: [Issue #3421202](https://www.drupal.org/node/3421202)
> Related issue: [Issue #3471104](https://www.drupal.org/node/3471104)
> Related issue: [Issue #3469490](https://www.drupal.org/node/3469490)
issue