[MGNLTEST-156] Resources editor-subapp cannot save, cannot read the value of a jcr resource / hotfix via UI test Created: 07/Apr/21  Updated: 15/Sep/21  Resolved: 15/Sep/21

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

Type: Bug Priority: Neutral
Reporter: Christoph Meier Assignee: Christoph Meier
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLTEST-137 Int. tests can add file based resourc... Selected
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Epic Link: core-TF-features-bugs-improvements

 Description   

It should be possible to to a "Edit file" action on the Resources app.

 The Resources app has the action "Add file" -> to create a hotfix.
When controlling editor-subapp via UI test, there are 2 issue:

form#getTextareaFieldValue not working

        expect.loginPage().login(Personas.ARMIN);
        expect.findBar().openApp(APP_NAME_RESOURCES);
        ContentApp contentApp = expect.contentApp(APP_LABEL_RESOURCES);
        contentApp.selectRowByPath("/aaa-module/guess-origin-test-resource.html")
                .hitAction("Edit file");
        String value = expect.form("Resource Files")
                .getTextareaFieldValue("Content");

In the debugger I see that value has the value " ". That's wrong

form#save does not work. But hotfix is created

        expect.loginPage().login(Personas.ARMIN);
        expect.findBar().openApp(APP_NAME_RESOURCES);
        ContentApp contentApp = expect.contentApp(APP_LABEL_RESOURCES);
        contentApp.selectRowByPath("/aaa-module/guess-origin-test-resource.html")
                .hitAction("Edit file");
        expect.form("Resource Files").
                setTextareaField("Content", "... origin here is JCR ...").
                save();

What exactly happens?

  • selenium adds the value "... origin here is JCR ..." into the textarea.
  • selenium clicks save, which closes the editor. No fialure. Seems fine.
  • A JCR resource (hotfix) has been created.
    But the value is the "original" value.


 Comments   
Comment by Christoph Meier [ 15/Sep/21 ]

This issue gets fixed with MGNLTEST-6 - hence this ticket is obsolete.

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