Skip to content
Snippets Groups Projects
Commit 9334d3ed authored by l26yan's avatar l26yan Committed by Igor Biki
Browse files

ISTWCMS-4832 Add layout builder to Catalog items content type

parent 1c310c74
No related branches found
No related tags found
2 merge requests!433ISTWCMS-6296 Create test for all event dates test cases,!149ISTWCMS-4832 Add layout builder to Catalog items content type
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment