diff --git a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php index 2a91fec..733c037 100644 --- a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php +++ b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php @@ -108,6 +108,9 @@ public function testUserWithoutPermission() { $this->assertNoRaw('data-quickedit-entity-id="node/1"'); $this->assertNoRaw('data-quickedit-field-id="node/1/body/en/full"'); + // Check that does not exist in-place editing title class. + $this->assertNoFieldByXPath('//h1[contains(@class, "js-quickedit-page-title")]', NULL, 'in-place js-quickedit-page-title editing class does not exists'); + // Retrieving the metadata should result in an empty 403 response. $post = array('fields[0]' => 'node/1/body/en/full'); $response = $this->drupalPostWithFormat(Url::fromRoute('quickedit.metadata'), 'json', $post); @@ -161,6 +164,9 @@ public function testUserWithPermission() { $this->assertRaw('data-quickedit-entity-id="node/1"'); $this->assertRaw('data-quickedit-field-id="node/1/body/en/full"'); + // Check for in-place editing title class. + $this->assertFieldByXPath('//h1[contains(@class, "js-quickedit-page-title")]', NULL, 'in-place editing js-quickedit-page-title class exists.'); + // There should be only one revision so far. $node = Node::load(1); $vids = \Drupal::entityManager()->getStorage('node')->revisionIds($node);