Skip to content
Snippets Groups Projects
Commit f40a88d1 authored by Bojan Zivanovic's avatar Bojan Zivanovic
Browse files

Expand the add page test.

parent d459c622
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,14 @@ class CreateUITest extends BrowserTestBase {
$assert->addressEquals('/entity_test_enhanced/add');
$assert->statusCodeEquals(200);
$assert->elementTextContains('css', '.page-title', 'Add entity test with enhancements');
// @todo Bundle links.
// Confirm the presence of unescaped descriptions.
$assert->responseContains('The first bundle');
$assert->responseContains('The <b>second</b> bundle');
// Validate the links.
$link = $this->getSession()->getPage()->findLink('First');
$this->assertEquals('/entity_test_enhanced/add/first', $link->getAttribute('href'));
$link = $this->getSession()->getPage()->findLink('Second');
$this->assertEquals('/entity_test_enhanced/add/second', $link->getAttribute('href'));
}
/**
......
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