Commit 97772f9e authored by Igor Biki's avatar Igor Biki
Browse files

Merge branch 'feature/ISTWCMS-4630-lkmorlan-dashboard-testing' into '3.0.x'

ISTWCMS-4630: Fix dashboard testing

See merge request !153
parents 28bd5715 4ec43a3f
......@@ -1416,11 +1416,13 @@ class UwWcmsBasicTest extends BrowserTestBase {
* Test default dashboard.
*/
private function dashboardTest() {
// Anonymous user cannot view 'whos-online' block in dashboard.
// Anonymous user cannot view "Who's online" block in dashboard.
if ($this->loggedInUser) {
$this->drupalLogout();
}
$this->drupalGet('dashboard/my_dashboard');
$this->assertSession()->statusCodeEquals(403);
// 'whos-online' block can be viewed by all roles.
// "Who's online" block can be viewed by all roles.
$roles = [
'authenticated user',
'uw_role_site_owner',
......
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