[MGNLTEST-3] Page object ToolBox (for content apps) Created: 25/Oct/19  Updated: 09/Nov/23

Status: Selected
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Low
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: QA&Testing, form-element, ui-test-fwk
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File jcr-browser_extensionViewDetails-hidden.png     PNG File jcr-browser_extensionViewDetails-showed.png    
Issue Links:
dependency
is depended upon by MGNLCE-245 UI tests for jcr-browser - high prio Open
is depended upon by MGNLCE-246 UI tests for jcr-browser - medium prio Open
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: core-TF-features-bugs-improvements
Team: Foundation
Work Started:

 Description   

The new Content apps come with some "tools" allowing to adapt the current content app, such as:

  • The extension view
  • The view switcher
  • and others.

The task is to provide a page object - the Toolbox - exposing the buttons and other UI elements which are displayed above the grid of the content app browser.

Use cases

  • jcr-browser app
    • choose workspace
    • toggle (hide/show) sys-properties
  • various content apps
    • view switcher: switch to tree, list, thumbnail view

Proposed API

ToolBox access:

ContentApp should provide access to the toolbox.

"Generic" stuff

  • Buttons
    • #clickButton(MagnoliaIcons icon)
  • Combobox
    • #getComboBoxValue(String label) 
    • #setComboBoxValue(String label, String value) 
  • Checkbox - check/uncheck
    • #check(String label) 
    • #uncheck(String label)

On all the above methods the API should allow to pass null for the label - in that case selecting the 1st one - or the only one.

 

Specific stuff

  • Toggle details - show/hide details.
    • #showExtensionViewDetails
    • #hideExtensionViewDetails

=> see  

 

  • switch view
    • #setViewType(type)

Not fully sure whether we want the specific stuff. These are convenience methods.
But at least the view switcher seems very reasonable.

 



 Comments   
Comment by Christoph Meier [ 06/Jul/20 ]

Note that there is am old PR from Federico which +/- already does what is requested by this ticket, see https://git.magnolia-cms.com/projects/PLATFORM/repos/ce/pull-requests/254/diff#magnolia-integration-tests/tests/src/test/java/info/magnolia/testframework/Toolbar.java

Generated at Mon Feb 12 07:44:35 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.