PathologicUITest should not be testing the Internet

Created on 12 April 2023, about 1 year ago
Updated 26 April 2023, about 1 year ago

Problem/Motivation

Drupal\Tests\pathologic\Functional\PathologicUITest::testPathologicUi() has started failing like so:

There was 1 error:

1) Drupal\Tests\pathologic\Functional\PathologicUITest::testPathologicUi
Behat\Mink\Exception\ExpectationException: Current response status code is 403, but 200 expected.

That's because it's doing this:

    $this->drupalGet('admin/config/content/pathologic');
    ...
    $this->clickLink('Pathologic’s documentation');
    $this->assertSession()->statusCodeEquals(200);

Looking at the generated output from the test, I see:

GET request to: https://www.drupal.org/node/257026
...

Access to this page has been denied.
You have been blocked because we believe you are using automation tools to browse the website.

So, it now fails thanks to a change on d.o to block requests like this. But it could also fail if the test machine isn't connected to the internet, if d.o itself is down for some reason, etc.

Steps to reproduce

Proposed resolution

Stop clicking on this link and testing the Internet. Just make sure the link is present and has the right href.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States dww

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024