Skip to content

Commit 62fbdf9

Browse files
pavi41Pavitra Khatri
andauthored
Remove extra quotes from custom message (#1601)
Co-authored-by: Pavitra Khatri <pavitrakhatri@Pavitras-MacBook-Pro.local>
1 parent 203f57b commit 62fbdf9

35 files changed

+35
-35
lines changed

bundles/af-core/src/main/java/com/adobe/cq/forms/core/components/util/AbstractBaseImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public String getScreenReaderText() {
189189
} else if (AssistPriority.DESCRIPTION.equals(assistPriority)) {
190190
screenReaderText = getDescription();
191191
} else if (AssistPriority.CUSTOM.equals(assistPriority)) {
192-
screenReaderText = "'" + customAssistPriorityMsg + "'"; // json formula string literal
192+
screenReaderText = customAssistPriorityMsg;
193193
}
194194
return screenReaderText;
195195
}

bundles/af-core/src/test/java/com/adobe/cq/forms/core/components/internal/models/v1/form/CheckBoxGroupImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void testGetDescription() {
128128
@Test
129129
void testGetScreenReaderText() {
130130
CheckBoxGroup checkboxGroup = getCheckBoxGroupUnderTest(PATH_CHECKBOX_GROUP);
131-
assertEquals("'Custom screen reader text'", checkboxGroup.getScreenReaderText());
131+
assertEquals("Custom screen reader text", checkboxGroup.getScreenReaderText());
132132
CheckBoxGroup checkboxGroupMock = Mockito.mock(CheckBoxGroup.class);
133133
Mockito.when(checkboxGroupMock.getScreenReaderText()).thenCallRealMethod();
134134
assertEquals(null, checkboxGroupMock.getScreenReaderText());

bundles/af-core/src/test/java/com/adobe/cq/forms/core/components/internal/models/v1/form/CheckBoxImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void testGetDescription() {
127127
@Test
128128
void testGetScreenReaderText() {
129129
CheckBox checkbox = getCheckBoxUnderTest(PATH_CHECKBOX);
130-
assertEquals("'Custom screen reader text'", checkbox.getScreenReaderText());
130+
assertEquals("Custom screen reader text", checkbox.getScreenReaderText());
131131
CheckBox checkboxMock = Mockito.mock(CheckBox.class);
132132
Mockito.when(checkboxMock.getScreenReaderText()).thenCallRealMethod();
133133
assertEquals(null, checkboxMock.getScreenReaderText());

bundles/af-core/src/test/java/com/adobe/cq/forms/core/components/internal/models/v1/form/DatePickerImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void testGetDescription() {
119119
@Test
120120
void testGetScreenReaderText() {
121121
DatePicker datePicker = Utils.getComponentUnderTest(PATH_DATEPICKER_CUSTOMIZED, DatePicker.class, context);
122-
assertEquals("'Custom screen reader text'", datePicker.getScreenReaderText());
122+
assertEquals("Custom screen reader text", datePicker.getScreenReaderText());
123123
DatePicker datePickerMock = Mockito.mock(DatePicker.class);
124124
Mockito.when(datePickerMock.getScreenReaderText()).thenCallRealMethod();
125125
assertEquals(null, datePickerMock.getScreenReaderText());

bundles/af-core/src/test/java/com/adobe/cq/forms/core/components/internal/models/v1/form/DropDownImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void testGetDescription() {
135135
@Test
136136
void testGetScreenReaderText() {
137137
DropDown dropdown = Utils.getComponentUnderTest(PATH_DROPDOWN_1, DropDown.class, context);
138-
assertEquals("'Custom screen reader text'", dropdown.getScreenReaderText());
138+
assertEquals("Custom screen reader text", dropdown.getScreenReaderText());
139139
DropDown dropdownMock = Mockito.mock(DropDown.class);
140140
Mockito.when(dropdownMock.getScreenReaderText()).thenCallRealMethod();
141141
assertEquals(null, dropdownMock.getScreenReaderText());

bundles/af-core/src/test/java/com/adobe/cq/forms/core/components/internal/models/v1/form/FileInputImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void testGetDescription() {
143143
@Test
144144
void testGetScreenReaderText() {
145145
FileInput fileInput = Utils.getComponentUnderTest(PATH_FILEINPUT_CUSTOMIZED, FileInput.class, context);
146-
assertEquals("'Custom screen reader text'", fileInput.getScreenReaderText());
146+
assertEquals("Custom screen reader text", fileInput.getScreenReaderText());
147147
FileInput fileInputMock = Mockito.mock(FileInput.class);
148148
Mockito.when(fileInputMock.getScreenReaderText()).thenCallRealMethod();
149149
assertEquals(null, fileInputMock.getScreenReaderText());

bundles/af-core/src/test/java/com/adobe/cq/forms/core/components/internal/models/v1/form/NumberInputImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void testGetDescription() {
129129
@Test
130130
void testGetScreenReaderText() {
131131
NumberInput numberInput = Utils.getComponentUnderTest(PATH_NUMBER_INPUT_CUSTOMIZED, NumberInput.class, context);
132-
assertEquals("'Custom screen reader text'", numberInput.getScreenReaderText());
132+
assertEquals("Custom screen reader text", numberInput.getScreenReaderText());
133133
NumberInput numberInputMock = Mockito.mock(NumberInput.class);
134134
Mockito.when(numberInputMock.getScreenReaderText()).thenCallRealMethod();
135135
assertEquals(null, numberInputMock.getScreenReaderText());

bundles/af-core/src/test/java/com/adobe/cq/forms/core/components/internal/models/v1/form/RadioButtonImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void testGetDescription() {
124124
@Test
125125
void testGetScreenReaderText() {
126126
RadioButton radioButton = getRadioButtonUnderTest(PATH_RADIOBUTTON_CUSTOMIZED);
127-
assertEquals("'custom text'", radioButton.getScreenReaderText());
127+
assertEquals("custom text", radioButton.getScreenReaderText());
128128
RadioButton radioButtonMock = Mockito.mock(RadioButton.class);
129129
Mockito.when(radioButtonMock.getScreenReaderText()).thenCallRealMethod();
130130
assertEquals(null, radioButtonMock.getScreenReaderText());

bundles/af-core/src/test/java/com/adobe/cq/forms/core/components/internal/models/v1/form/SwitchImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void testGetDescription() {
118118
@Test
119119
void testGetScreenReaderText() {
120120
Switch switchObj = getSwitchUnderTest(PATH_SWITCH);
121-
assertEquals("'Custom screen reader text'", switchObj.getScreenReaderText());
121+
assertEquals("Custom screen reader text", switchObj.getScreenReaderText());
122122
Switch switchMock = Mockito.mock(Switch.class);
123123
Mockito.when(switchMock.getScreenReaderText()).thenCallRealMethod();
124124
assertEquals(null, switchMock.getScreenReaderText());

bundles/af-core/src/test/java/com/adobe/cq/forms/core/components/internal/models/v1/form/TextInputImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void testGetNumberDefault() {
158158
@Test
159159
void testGetScreenReaderText() {
160160
TextInput textInput = Utils.getComponentUnderTest(PATH_TEXTINPUT_CUSTOMIZED, TextInput.class, context);
161-
assertEquals("'Custom screen reader text'", textInput.getScreenReaderText());
161+
assertEquals("Custom screen reader text", textInput.getScreenReaderText());
162162
TextInput textInputMock = Mockito.mock(TextInput.class);
163163
Mockito.when(textInputMock.getScreenReaderText()).thenCallRealMethod();
164164
assertEquals(null, textInputMock.getScreenReaderText());

0 commit comments

Comments
 (0)