Commit ef74f494 authored by l26yan's avatar l26yan
Browse files

ISTWCMS-4838 Show error message when create catalog item without catalog term created

parent 2969200a
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment