Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-156

Resources editor-subapp cannot save, cannot read the value of a jcr resource / hotfix via UI test

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Neutral Neutral
    • None
    • None
    • None

      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.

        Acceptance criteria

              cmeier Christoph Meier
              cmeier Christoph Meier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: