diff --git a/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/basic/.content.xml b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/basic/.content.xml index 547de8cef3..b2b3ef23fc 100644 --- a/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/basic/.content.xml +++ b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/basic/.content.xml @@ -213,6 +213,23 @@ validationStatus="valid"/> + diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/textinput/v1/textinput/textinput.html b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/textinput/v1/textinput/textinput.html index 23e41392be..ebf4835dad 100644 --- a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/textinput/v1/textinput/textinput.html +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/textinput/v1/textinput/textinput.html @@ -48,7 +48,8 @@ placeholder="${text.placeHolder}" autocomplete="${text.autoComplete}" minlength="${text.minLength}" - maxlength="${text.maxLength}"> + maxlength="${text.maxLength}" + dir="auto"> { const [textbox7, textBox7FieldView] = Object.entries(formContainer._fields)[6]; const [textbox8, textBox8FieldView] = Object.entries(formContainer._fields)[7]; - const [submitbutton1, fieldView] = Object.entries(formContainer._fields)[11] + const [submitbutton1, fieldView] = Object.entries(formContainer._fields)[12] // 1. Required cy.get(`#${textbox6}`).find("input").focus().blur().then(x => { @@ -299,6 +299,12 @@ describe("Form Runtime with Text Input", () => { }) } }); + + // check for dir attribute in text area + it("should have dir attribute in text area", () => { + const [id, fieldView] = Object.entries(formContainer._fields)[11] + cy.get(`#${id}`).find("textarea").invoke('attr', 'dir').should('eq', 'auto'); + }); }) describe("Form Runtime with Text Input For Different locale", () => { @@ -361,5 +367,6 @@ describe("setFocus on text field via rules", () => { cy.get(`#${id}`).should('have.class', 'cmp-adaptiveform-textinput--filled'); }); }); + })