Issue #3268244 by Spokje, xjm, Wim Leers: [random test failure] Un-skip and fix QuickEditIntegrationTest::testArticleNode()

merge-requests/2391/head
catch 2022-06-16 13:08:34 +01:00
parent 9423caeeb9
commit 3fff51c708
1 changed files with 11 additions and 1 deletions

View File

@ -119,7 +119,6 @@ class LayoutBuilderIntegrationTest extends QuickEditJavascriptTestBase {
* Tests if an article node can be in-place edited with Quick Edit.
*/
public function testArticleNode() {
$this->markTestSkipped();
$term = Term::create([
'name' => 'foo',
'vid' => 'tags',
@ -138,6 +137,17 @@ class LayoutBuilderIntegrationTest extends QuickEditJavascriptTestBase {
],
]);
// Move "tags" field to the top of all fields, so its Quick Edit Toolbar
// won't overlap any Quick Edit-able fields, which causes (semi-)random test
// failures.
\Drupal::entityTypeManager()
->getStorage('entity_view_display')
->load('node.article.default')
->setComponent('field_tags', [
'type' => 'entity_reference_label',
'weight' => 0,
])->save();
$this->drupalGet('node/' . $node->id());
// Initial state.