diff --git a/tests/src/Functional/UwWcmsBasicTest.php b/tests/src/Functional/UwWcmsBasicTest.php index 43ee4c859c981b6c510f911450f46ebdedf8f20c..83d81211a3bda51481b20e3377b51a47516f2f92 100644 --- a/tests/src/Functional/UwWcmsBasicTest.php +++ b/tests/src/Functional/UwWcmsBasicTest.php @@ -774,10 +774,8 @@ class UwWcmsBasicTest extends BrowserTestBase { ]; // Create a catalog item node. $this->drupalPostForm('node/add/uw_ct_catalog_item', $edit, 'Save'); - // Make sure "preview" button does not exist. - $this->assertSession()->buttonNotExists('Preview'); } - $this->drupalLogin($this->drupalUsers['administrator']); + $this->drupalLogin($this->drupalUsers['uw_role_site_manager']); // Create the first taxonomy term which the vocab is // catalog and the tid should be 35. $editCatalog = [ @@ -807,6 +805,14 @@ class UwWcmsBasicTest extends BrowserTestBase { ]; // Create a catalog item node with needs review. $this->drupalPostForm('node/add/uw_ct_catalog_item', $editNode, 'Save'); + // Check node title. + $this->assertSession()->pageTextContains('Edit layout for Test catalog item'); + // Check that there is no moderation form. + $this->assertSession()->linkByHrefNotExists('/admin/uw-content-moderation/'); + // Make sure no 'Revert to default' on the above content type layout page. + $this->assertSession()->buttonNotExists('Revert to defaults'); + $this->assertSession()->buttonExists('Save layout'); + // Check all paths related to catalog views exist. $this->drupalGet('catalogs'); $this->assertSession()->statusCodeEquals(200);