From 4570f10effc9a4c892246241616e69c75b2245b6 Mon Sep 17 00:00:00 2001 From: Mike Herchel <mike@herchel.com> Date: Mon, 24 Jun 2024 08:50:53 -0400 Subject: [PATCH] Fix tests and description text in form. --- src/Form/QuicklinkConfigForm.php | 2 +- tests/src/Nightwatch/Tests/integrationTest.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Form/QuicklinkConfigForm.php b/src/Form/QuicklinkConfigForm.php index 7b282f9..b043e26 100644 --- a/src/Form/QuicklinkConfigForm.php +++ b/src/Form/QuicklinkConfigForm.php @@ -282,7 +282,7 @@ class QuicklinkConfigForm extends ConfigFormBase { $form['polyfill']['load_polyfill'] = [ '#type' => 'checkbox', '#title' => $this->t('Load <em>Intersection Observer</em> polyfill'), - '#description' => $this->t('This checkbox will enable loading of necessary polyfills from <a href="https://polyfill.io" target="_blank">polyfill.io</a>. This will enable usage of Quicklink in IE11 and older versions modern browsers.'), + '#description' => $this->t('This checkbox will enable loading of necessary polyfills from <a href="https://polyfill-fastly.io" target="_blank">polyfill-fastly.io</a>. This will enable usage of Quicklink in IE11 and older versions modern browsers.'), '#default_value' => $config->get('load_polyfill'), ]; diff --git a/tests/src/Nightwatch/Tests/integrationTest.js b/tests/src/Nightwatch/Tests/integrationTest.js index 4bed118..81d4cca 100644 --- a/tests/src/Nightwatch/Tests/integrationTest.js +++ b/tests/src/Nightwatch/Tests/integrationTest.js @@ -121,7 +121,7 @@ module.exports = { ) // Verify polyfill is not loaded. - .assert.not.elementPresent('script[src*="polyfill.io"][src*="IntersectionObserver"]'); + .assert.not.elementPresent('script[src*="polyfill-fastly.io"][src*="IntersectionObserver"]'); }, 'Change and then verify updated settings': (browser) => { browser @@ -240,7 +240,7 @@ module.exports = { .waitForElementVisible('body') // Verify polyfill is loaded. - .assert.elementPresent('script[src*="polyfill.io"][src*="IntersectionObserver"]') + .assert.elementPresent('script[src*="polyfill-fastly.io"][src*="IntersectionObserver"]') // Verify that links within admin containers are now prefetched. .assert.not.elementIgnored('<div id="block-local-tasks-block"><a href="/test">test</a></div>') -- GitLab