$this->
drupalGet('user/' .
$this->adminUser->
id() . '/shortcuts'
);
// Verify that generated shortcut set was listed as a choice on the user
// account page.
$this->
assertSession()->
pageTextContains($new_set->
label());
} /**
* Tests editing a shortcut set.
*/
public function testShortcutSetEdit() { $set =
$this->set;
$shortcuts =
$set->
getShortcuts();
// Visit the shortcut set edit admin ui.
$this->
drupalGet('admin/config/user-interface/shortcut/manage/' .
$set->
id() . '/customize'
);
// Test for the page title.
$this->
assertSession()->
titleEquals('List links | Drupal'
);
// Test for the table.
$this->
assertSession()->
elementExists('xpath', '//div[@class="layout-content"]//table'
);
// Test the table header.