Problem/Motivation

The label uses randomString(), and that can result in encoding problems in javascript tests:

1) Drupal\Tests\paragraphs_collection\FunctionalJavascript\ParagraphsStylePluginTest::testGlobalStyleSettings
Behat\Mink\Exception\ExpectationException: The string "Saved ]RDB>&^' configuration." was not found anywhere in the HTML response of the current page.

We started getting this after converting this test from simpletest to FunctionalJavasript

Steps to reproduce

Proposed resolution

Use ::randomMachineName instead

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3121325

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Berdir created an issue. See original summary.

berdir’s picture

Issue summary: View changes
Issue tags: +Random test failure

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

larowlan’s picture

Issue summary: View changes
Issue tags: +Bug Smash Initiative, +Novice

uqjhawk3 made their first commit to this issue’s fork.

uqjhawk3’s picture

Status: Active » Needs review
larowlan’s picture

Status: Needs review » Reviewed & tested by the community

Straight forward fix

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

  • catch committed 37132a2 on 10.0.x
    Issue #3121325 by uqjhawk3, Berdir: FieldUiTestTrait::...
  • catch committed 54ee1df on 10.1.x
    Issue #3121325 by uqjhawk3, Berdir: FieldUiTestTrait::...
  • catch committed fe1176a on 9.4.x
    Issue #3121325 by uqjhawk3, Berdir: FieldUiTestTrait::...
  • catch committed 2dbdf7a on 9.5.x
    Issue #3121325 by uqjhawk3, Berdir: FieldUiTestTrait::...
catch’s picture

Version: 9.5.x-dev » 9.4.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 10.1.x, cherry-picked back to 9.4.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.