Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_base_profile
Commits
ef74f494
Commit
ef74f494
authored
Jun 14, 2021
by
l26yan
Browse files
ISTWCMS-4838 Show error message when create catalog item without catalog term created
parent
2969200a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
tests/src/Functional/UwWcmsBasicTest.php
tests/src/Functional/UwWcmsBasicTest.php
+5
-0
No files found.
tests/src/Functional/UwWcmsBasicTest.php
View file @
ef74f494
...
...
@@ -371,6 +371,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$audience
=
$this
->
getSession
()
->
getPage
()
->
find
(
'xpath'
,
"//span[contains(text(), 'Audience')]"
);
$this
->
assertEquals
(
'edit-field-uw-audience--wrapper'
,
$audience
->
getParent
()
->
getParent
()
->
getAttribute
(
'id'
));
}
else
{
// The message is displayed when creating a catalog item
// without a catalog term created.
$this
->
assertSession
()
->
pageTextContains
(
'You must create at least one catalog before adding a catalog item.'
);
}
}
// Test field_uw_event_map exists.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment