[random test failure] Random failure in ThrobberTest::testProgressThrobberPosition

Created on 17 September 2023, 9 months ago
Updated 29 September 2023, 9 months ago

Problem/Motivation

 PHPUnit Test failed to complete; Error: PHPUnit 9.6.8 by Sebastian Bergmann
    and contributors.
    
    Testing Drupal\FunctionalJavascriptTests\Ajax\ThrobberTest
    .E                                                                  2 / 2
    (100%)
    
    Time: 00:37.165, Memory: 4.00 MB
    
    There was 1 error:
    
    1)
    Drupal\FunctionalJavascriptTests\Ajax\ThrobberTest::testProgressThrobberPosition
    Behat\Mink\Exception\ElementNotFoundException: Element matching xpath
    "//div[contains(@class,
    "dropbutton-wrapper")]/following-sibling::div[contains(@class,
    "ajax-progress-throbber")]" not found.
    
    /builds/project/drupal/vendor/behat/mink/src/WebAssert.php:418
    /builds/project/drupal/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ThrobberTest.php:109
    /builds/project/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
    
    ERRORS!
    Tests: 2, Assertions: 18, Errors: 1.

Steps to reproduce

Proposed resolution

- Wait for elements that are more specific than (an already present) link text.
- Place hold_test_response at the appropriate position.
- Don't use root user just because it "conveniently" has all permissions.
- Don't use a separate method to prevent a full init and destroy of a testsite for testing one throbber.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
PHPUnit 

Last updated about 16 hours ago

Created by

🇳🇱Netherlands Spokje

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

Comments & Activities

Production build 0.69.0 2024