diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2023-03-22 23:42:03 +0100 |
---|---|---|
committer | Marco Cecchetti <mrcekets@gmail.com> | 2023-04-03 14:57:58 +0200 |
commit | 1d2607e8363dab839e7060ab38612123d284c98f (patch) | |
tree | 08cf8c99276f7931aa790742c563c26e7899f65e /cypress_test/integration_tests/desktop/calc | |
parent | mobile: use attribute 'visibility' to hide toolbar back button (diff) | |
download | online-1d2607e8363dab839e7060ab38612123d284c98f.tar.gz online-1d2607e8363dab839e7060ab38612123d284c98f.zip |
a11y: TextInput: switch from <textarea> to content editable <div>
Refactored TextInput implementation. A content editable <div> is used
in place of <textarea>.
<img> elements are used as pre/post spaces.
Minimal changes to FormulaBarJSDialog, since some code was
dependendent on
TextInput details.
Refactored some cypress helper funcions, too, since cypress tests
expected a <textarea> element.
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I2141d7769588bb5bf8a0fbb62f036cb78f914966
Diffstat (limited to 'cypress_test/integration_tests/desktop/calc')
-rw-r--r-- | cypress_test/integration_tests/desktop/calc/focus_spec.js | 4 | ||||
-rw-r--r-- | cypress_test/integration_tests/desktop/calc/undo_redo_spec.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cypress_test/integration_tests/desktop/calc/focus_spec.js b/cypress_test/integration_tests/desktop/calc/focus_spec.js index 6d402714c7..8e586409ba 100644 --- a/cypress_test/integration_tests/desktop/calc/focus_spec.js +++ b/cypress_test/integration_tests/desktop/calc/focus_spec.js @@ -27,7 +27,7 @@ describe('Calc focus tests', function() { // Type some text. var text1 = 'Hello from Calc'; - helper.typeText('textarea.clipboard', text1); + helper.typeText('#clipboard-area', text1); calcHelper.typeIntoFormulabar('{enter}'); // Select the first cell to edit the same one. @@ -46,7 +46,7 @@ describe('Calc focus tests', function() { calcHelper.clickFormulaBar(); helper.assertCursorAndFocus(); var text2 = ', this is a test.'; - helper.typeText('textarea.clipboard', text2); + helper.typeText('#clipboard-area', text2); // Validate. calcHelper.typeIntoFormulabar('{ctrl}a'); helper.expectTextForClipboard(text1 + text2); diff --git a/cypress_test/integration_tests/desktop/calc/undo_redo_spec.js b/cypress_test/integration_tests/desktop/calc/undo_redo_spec.js index 4e3e3e4cd6..d57a84ed44 100644 --- a/cypress_test/integration_tests/desktop/calc/undo_redo_spec.js +++ b/cypress_test/integration_tests/desktop/calc/undo_redo_spec.js @@ -16,7 +16,7 @@ describe('Editing Operations', function() { }); function undo() { - helper.typeText('textarea.clipboard', 'Hello World'); + helper.typeText('#clipboard-area', 'Hello World'); helper.typeIntoDocument('{ctrl}z'); |