Behat: Confirm correct dashboard elements are present

Bug #1891266 reported by Rebecca Blundell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Rangi Daymond

Bug Description

Automating a manual test. Copied from spreadsheet:

Verify default dashboard includes the following blocks:
Latest pages, My pages, Inbox, Topics I’m following
(Note these titles are out of date. We need to check the current titles)

Verify user can add or remove blocks via edit dashboard

For this we can add to the homepage_buttons.feature. I suggest renaming it to dashboard.feature and it can be the core test for items on that page.

1. Add a scenario called "Checking default blocks are displayed".

2. As the section commented "# check for bug 1493199 name changed from “Latest pages” to “Latest changes I can view”" includes a check for that, transfer it to the new scenario.

3. Add checks for the other defaults:
Inbox
Topics I am following
My portfolios
Watched pages

4. Follow "Edit dashboard" and confirm that the blocks all contain a "Remove block" option and that all except My portfolios contain a "Configure block" option.

5. Test that the configure modal opens for one of the blocks and that you can save a change. (Note that we are not interested in this test whether the options work.)

6. Test that you can delete one of the blocks

7. Return to the dashboard and confirm the block you deleted is not displayed.

ADDITIONAL CHECKS:
There is another manual test that checks a different block can be added to the dashboard. We can incorporate this test too. While editing the dashboard in 4. above, add a block.
In 7. confirm that the new block is displayed. (Let's use a block for this that isn't added elsewhere.)

Tags: behat-test
description: updated
summary: - Behat: Confirm correct homepage elements are present
+ Behat: Confirm correct dashboard elements are present
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11146

description: updated
Revision history for this message
Rebecca Blundell (rjb-dev) wrote :

After editing this test, we found that we could not find a way to get Behat to "see" the "Configure block" and "Remove block" elements without using the steps that click them. We have left that part of the test as "TODO" in the meantime.

Rangi Daymond (rangid)
Changed in mahara:
status: New → In Progress
assignee: Rangi Daymond (rangid) → nobody
assignee: nobody → Rangi Daymond (rangid)
description: updated
Changed in mahara:
importance: Undecided → Medium
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11146
Committed: https://git.mahara.org/mahara/mahara/commit/4e5d6ecc387df3d73f4d88b36bb5a549760403a5
Submitter: Lisa Seeto (<email address hidden>)
Branch: master

commit 4e5d6ecc387df3d73f4d88b36bb5a549760403a5
Author: Rangi Daymond <email address hidden>
Date: Mon Aug 17 15:24:13 2020 +1200

Bug 1891266: Behat: confirm Dashboard elements are correct

Automating manual test
Check default blocks exist
Check a dashboard block can be edited
Check a new block can be added
Check a default block can be deleted
Check defaults for configure/remove blocks

Change-Id: Ifc1a860bce67bc7e9ac2b449e748c7e1bba33a2c

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "20.10_STABLE" branch: https://reviews.mahara.org/11307

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11307
Committed: https://git.mahara.org/mahara/mahara/commit/95bda6da535a1b04f6d0e510e9a040a0074b2960
Submitter: Lisa Seeto (<email address hidden>)
Branch: 20.10_STABLE

commit 95bda6da535a1b04f6d0e510e9a040a0074b2960
Author: Rangi Daymond <email address hidden>
Date: Mon Aug 17 15:24:13 2020 +1200

Bug 1891266: Behat: confirm Dashboard elements are correct

Automating manual test
Check default blocks exist
Check a dashboard block can be edited
Check a new block can be added
Check a default block can be deleted
Check defaults for configure/remove blocks

Change-Id: Ifc1a860bce67bc7e9ac2b449e748c7e1bba33a2c
(cherry picked from commit 4e5d6ecc387df3d73f4d88b36bb5a549760403a5)

Lisa Seeto (lisaseeto)
Changed in mahara:
milestone: none → 20.10.0
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.