Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_base_profile
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_base_profile
Commits
9334d3ed
Commit
9334d3ed
authored
3 years ago
by
l26yan
Committed by
Igor Biki
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4832 Add layout builder to Catalog items content type
parent
1c310c74
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!433
ISTWCMS-6296 Create test for all event dates test cases
,
!149
ISTWCMS-4832 Add layout builder to Catalog items content type
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Functional/UwWcmsBasicTest.php
+9
-3
9 additions, 3 deletions
tests/src/Functional/UwWcmsBasicTest.php
with
9 additions
and
3 deletions
tests/src/Functional/UwWcmsBasicTest.php
+
9
−
3
View file @
9334d3ed
...
...
@@ -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
[
'
administrato
r'
]);
$this
->
drupalLogin
(
$this
->
drupalUsers
[
'
uw_role_site_manage
r'
]);
// 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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment