PHPUnit test failure with 3.0-rc11

Created on 18 June 2024, 10 months ago

Problem/Motivation

rc11 has cause issues with PHPUnit Functional tests, downgrading to rc10 fixes the issue.

Steps to reproduce

Install rc11 and a test similar to;

// Create a node.
    $this->drupalGet('/node/add/page');
    $title = $this->randomMachineName();
    $this->submitForm(
      [
        'title[0][value]' => $title,
        'body[0][summary]' => 'Test content lock',
        'body[0][value]' => 'Test content lock',
      ],
      'Save'
    );
    $this->assertSession()->pageTextContains('Service page ' . $title . ' has been created.');

With rc11 "Behat\Mink\Exception\ElementNotFoundException: Element matching xpath "./ancestor::form" not found." is shown, with rc10 the test passes.

🐛 Bug report
Status

Active

Component

Code

Created by

🇬🇧United Kingdom millnut

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

Comments & Activities

Production build 0.71.5 2024