-
Bug
-
Resolution: Obsolete
-
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
- relates to
-
MGNLTEST-137 Int. tests can add file based resources to the FS / magnolia.resources.dir
- Selected