Commit 911b61fc authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Merge branch...

Merge branch 'feature/ISTWCMS-4874-l26yan-Make-people-and-reports-show-on-dashboard-toolbar' into '3.0.x'

ISTWCMS-4874 Test 'People' and 'Reports toolbar in Workbench

See merge request !156
parents 0e8f2c18 f2c62dc4
......@@ -1436,9 +1436,18 @@ class UwWcmsBasicTest extends BrowserTestBase {
foreach ($roles as $role) {
$this->drupalLogin($this->drupalUsers[$role]);
$this->drupalGet('dashboard/my_dashboard');
if ($role != 'authenticated user') {
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->pageTextContains("Who's online");
if ($role == 'administrator' || $role == 'uw_role_site_owner') {
$this->assertSession()->linkExists('People');
$this->assertSession()->linkExists('Reports');
}
else {
$this->assertSession()->linkNotExists('People');
$this->assertSession()->linkNotExists('Reports');
}
}
else {
$this->assertSession()->statusCodeEquals(403);
......
Markdown is supported
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