Problem/Motivation
https://git.drupalcode.org/issue/drupal-2840283/-/jobs/8139558#L547
Inline Block (Drupal\Tests\layout_builder\FunctionalJavascript\InlineBlock) ✔ Inline blocks ✔ No layout save with discard_changes ✔ No layout save with revert ✘ Inline blocks revisioning ┐ ├ TypeError: str_starts_with(): Argument #1 ($haystack) must be of type string, array given │ │ /builds/issue/drupal-2840283/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:115 ┴ ✔ Inline blocks revisioning integrity ✔ Deletion ✔ Access ✔ Add work flow ✔ Add inline blocks permission ✔ Edit inline blocks permission ✔ Inline block parent revert ERRORS! Tests: 11, Assertions: 238, Errors: 1.
Steps to reproduce
See random fails in core MRs.
Proposed resolution
The test does not need to be FunctionalJavascript test as its not testing anything that requires JS. Convert it to a Functional test.
Remaining tasks
Verify results of baseline vs. fix repeat jobs- Reviews / refinements
- RTBC
- Commit / rejoice
Issue fork drupal-3568635
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:
- 3568635-random-test-failure
changes, plain diff MR !14664
Comments
Comment #2
joelpittetComment #3
joelpittetFixing the component as I noticed it's layout_builder in the namespace.
Comment #4
jsacksick commentedI just wanted to report that Commerce is suffering from the exact same issue: See https://git.drupalcode.org/project/commerce/-/jobs/8222384#L345.
Comment #5
danielvezaLike many LB tests, I don't think this should be a FunctionalJS test. We should try rewrite it to just be functional
Comment #7
danielvezaHad a bit of time before wrapping up for the day. Converted the test to a Functional to stop the random fails
Comment #8
danielvezaMoved the test to a functional test, tests are green. I think this is ready for review.
Comment #9
smustgrave commentedSmall comment on the MR but can we update the summary to help with the review please.
helps when we can map the solution to the MR and make sure everything is inline
Thanks!
Comment #10
danielvezaComment #11
danielvezaAddressed MR feedback, tests are green, IS updated.
Comment #12
dcam commentedNice catch noticing that it doesn't need to be a FunctionalJavascript test. The feedback from the last review was addressed. I reviewed the changes myself, comparing the new test to the old one. It looks to me like the test's functionality was preserved. In addition to comparing the code changes I also compared the HTML output of the tests. It's a little difficult because the flow of the tests is slightly different, but for the most part they match up. I think it looks good.
Comment #16
catchCommitted/pushed to main and 11.x, thanks!