[MGNLTEST-42] Page object for page editor (Pages app) Created: 18/Dec/19  Updated: 08/Jul/20  Resolved: 12/Feb/20

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

Type: Task Priority: Neutral
Reporter: Christoph Meier Assignee: Federico Grilli
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLCE-185 UI tests Pages-app core - high prio Closed
is depended upon by MGNLCE-186 UI tests Pages-app core - medium prio Closed
is depended upon by MGNLCE-187 UI tests Pages-app core - low prio Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Epic Link: core-TF-features-bugs-improvements
Story Points: 5

 Description   

Provide a page object which enables page editing.

Use case: Page editor

The "main" object PageEditor
It represents the detail-subapp, I assume could be for both "states" preview-mode and edit-mode.

Not yet sure which other page object should provide the page_editor page_page.
Depends also a bit on what the return type of its methods should be to enable a "fluid API".

It could be the "root PageObject" which provides the PageEditor, given the pages app was opened. In this case PageEditor would extend ContentApp.


Required functions

In summary, the functions should enabling the creation and manipulation of components within areas.
Add, edit, move (comp).
It most cases it is hopefully sufficient to just click / select on bars of areas and components.
A tricky part is the "move component". Not yet sure how we could do that.

select area

Select an area by its given name.

PageEditor selectArea(String areaName);

Select component

Select an area ... by ... hm ... that's the tricky part. t could be:

  • a number,
    • an int starting by 0 following the order (within an area ...)
    • ...
  • a String
    • The (technical) node name such as "O", "00", etc. pp
    • a (sub)string of a text inside the comp. (e.g. the header)
    • Problem here: not every component has text. However, for testing reason this could be sufficient

Ticket requires further refinement. To be discussed with Federico.



 Comments   
Comment by Christoph Meier [ 14/Jan/20 ]

Investigate regarding how to select the component.

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