Tests the cloning of a display.
public function testCloneDisplay() {
$view = $this
->randomView();
$path_prefix = 'admin/structure/views/view/' . $view['name'] . '/edit';
$this
->drupalGet($path_prefix);
$this
->drupalPost(NULL, array(), 'clone Page');
$this
->assertLinkByHref($path_prefix . '/page_1', 0, 'Make sure after cloning the new display appears in the UI');
}