Failing phpunit test: h1[text() = "Administration"] not found

Created on 19 December 2023, 11 months ago
Updated 7 April 2024, 8 months ago

Problem/Motivation

From 17 Dec there has been one phpunit test failure. The pipeline on 15 Dec passed green. The log has:

There was 1 error:
1) Drupal\Tests\keycdn\Functional\ExampleTest::testSomething
Behat\Mink\Exception\ElementNotFoundException: Element matching xpath "//h1[text() = "Administration"]" not found.
/builds/project/keycdn/vendor/behat/mink/src/WebAssert.php:465
/builds/project/keycdn/tests/src/Functional/ExampleTest.php:31
/builds/project/keycdn/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
ERRORS!
Tests: 4, Assertions: 22, Errors: 1.

It would be helpful to investigate and solve this, not just for this project's own purpose, but also that KeyCDN is triggered as a downstream job from gitlab_templates MRs. A red fail gives the first impression that a gitlab_templates MR has broken something, but that is not the case.
https://git.drupalcode.org/project/gitlab_templates/-/pipelines/65175

๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathan1055

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024