[MGNLTEST-13] #setTextField on Form works for "all" kind of text fields Created: 17/Sep/19  Updated: 18/Sep/20  Resolved: 18/Sep/20

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

Type: Task Priority: Neutral
Reporter: Christoph Meier Assignee: Michael Duerig
Resolution: Fixed Votes: 1
Labels: QA&Testing, form-element, ui-test-fwk
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLTEST-66 Page objects - Provide access to defa... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: core-TF-features-bugs-improvements
Sprint: TE 11
Story Points: 5

 Description   

New description:


Currently we have the method

 public Form setTextField(String caption, String text) 

on info.magnolia.testframework.Form.

The method works if the text field is has "one row" only. As soon as it it has more rows rendered as TextArea, the setter fails.

Proposed Task:
Adapt implementation of setTextField(String caption, String text) to make sure it can handle text fields wit one or many rows and that it even works for RichText field.

imho currently I see no need to support RichText specifically for UI tests. All "additional features" of the RichTextField so far will not be tested.


OLD description:

Provide a page object for the RichTextField, also extend the Form to to use this new object via form.

Required functions on the rich text field page object:

  • Enter text

So far I see no need to support the "more sophisticated" features of the rich text field. A
Adding text seems sufficient.


Main use case: Pages app



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

Federico actually proposes to

  • keep the setTextField(String caption, String text) as it is
  • Additionally add
    • setRichText(String caption, String text)
    • setTextArea(String caption, String text)

Reason: Having a "one-fits-all" solution may slow-up tests.

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