New issue
Advanced search Search tips

Issue 887537 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Oct 10
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Task
Proj-VR
Proj-XR
Proj-XR-VR



Sign in to add a comment

[VR Browsing] Automatable test cases: Website text entry

Project Member Reported by dbbrooks@chromium.org, Sep 20

Issue description

These are automatable manual test cases as determined by our manual test case review with Brian a couple weeks ago.


Test cases:
1. Reposition cursor in the text field
2. Edit text after text selection
3. Exit text entry mode
4. Exit text entry mode by clicking controller’s app button
5. Redirect happens when in text entry mode

Test case steps for (1.): "Reposition cursor in the text field"
1. Access www.google.com on the test device
2. Enter Chrome VR
3. Click Search input field using Daydream controller
4. Type “funny cats videos” in the text entry field using virtual keyboard
5. Point controller after the word “cats” in the text entry field and click touchpad
6. Verify: cursor position is changed accordingly and the there is NO “Text Selection” handle present.
7. Remove the word “cats” from the query using keyboard backspace button
8. Verify: suggestions are changed according to the new query “funny videos”


Test case steps for (2.): "Edit text after text selection"
(actual steps can vary, just confirm text can be edited)

1. Access www.google.com on the test device
2. Enter Chrome VR
3. Click Search input field using Daydream controller
4. Type ‘funny cats’ in the search field using keyboard
5. Double click on ‘cats’
6. Verify that only ‘cats’ is selected.
7. Press the backspace on the keyboard.
8. Verify that only ‘cats’ is deleted.
9. Type ‘dogs’.
10. Verify ‘dogs’ is appended to the search string.
11. Triple click on ‘funny’ to select everything.
12. Press the backspace on the keyboard.
13. Verify that everything is deleted. 
14. Type ‘birds’.
15. Verify the keyboard still works.


Test case steps for (3.): "Exit text entry mode"
1. Access www.google.com on the test device
2. Enter Chrome VR
3. Click Search input field using Daydream controller
4. Type ‘funny cats’ in the search field using keyboard
5. Click ‘keyboard down’ button, see screenshot
6. Verify: Keyboard is dismissed, user is returned back to the standard web page view.
7. Click Search input field using Daydream controller
8. Click on Context Quad.
9. Verify: Keyboard is dismissed, user is returned back to the standard web page view.
10. Click Search input field using Daydream controller
11. Click outside Context Quad.
12. Verify: Keyboard is dismissed, user is returned back to the standard web page view.


Test case steps for (4.): "Exit text entry mode by clicking controller’s app button"
1. Access www.google.com on the test device
2. Enter Chrome VR
3. Click Search input field using Daydream controller
4. Type ‘funny cats’ in the search field using keyboard
5. Press controller’s app button
6. Verify: Keyboard is dismissed, user is returned back to the standard web page view

Test case steps for (5.): "Redirect happens when in text entry mode"
1. Access http://chrome-vr-test.appspot.com/data/redirect_to_CNN/index.html on the test device
2. Enter Chrome VR
3. Click ‘Redirect’ button 
4. Click text input field using Daydream controller and start typing
5. Wait until redirect to cnn.com happens
6. Verify: Virtual keyboard is dismissed after redirect happened
 
Description: Show this description
Project Member

Comment 2 by bugdroid1@chromium.org, Oct 10

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6c9cd913a27ee103ca1e0678d871a7bbf7177687

commit 6c9cd913a27ee103ca1e0678d871a7bbf7177687
Author: bsheedy <bsheedy@chromium.org>
Date: Wed Oct 10 18:59:42 2018

Automate VR web text entry tests

Automates the five manual tests from  https://crbug.com/887537 , which all
relate to inputting text via the VR keyboard into a webpage.

Bug:  887537 
Change-Id: Ic71cae25b88e7dd0eb88ab809f9910458f1761df
Reviewed-on: https://chromium-review.googlesource.com/c/1272083
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#598429}
[modify] https://crrev.com/6c9cd913a27ee103ca1e0678d871a7bbf7177687/chrome/android/java/src/org/chromium/chrome/browser/vr/VrShell.java
[modify] https://crrev.com/6c9cd913a27ee103ca1e0678d871a7bbf7177687/chrome/android/java/src/org/chromium/chrome/browser/vr/keyboard/VrInputMethodManagerWrapper.java
[modify] https://crrev.com/6c9cd913a27ee103ca1e0678d871a7bbf7177687/chrome/android/javatests/src/org/chromium/chrome/browser/vr/VrBrowserWebInputEditingTest.java
[modify] https://crrev.com/6c9cd913a27ee103ca1e0678d871a7bbf7177687/chrome/android/javatests/src/org/chromium/chrome/browser/vr/mock/MockBrowserKeyboardInterface.java
[modify] https://crrev.com/6c9cd913a27ee103ca1e0678d871a7bbf7177687/chrome/android/javatests/src/org/chromium/chrome/browser/vr/util/NativeUiUtils.java
[add] https://crrev.com/6c9cd913a27ee103ca1e0678d871a7bbf7177687/chrome/test/data/xr/e2e_test_files/html/generic_text_entry_page.html
[add] https://crrev.com/6c9cd913a27ee103ca1e0678d871a7bbf7177687/chrome/test/data/xr/e2e_test_files/html/test_web_input_cursor_reposition.html
[add] https://crrev.com/6c9cd913a27ee103ca1e0678d871a7bbf7177687/chrome/test/data/xr/e2e_test_files/html/test_web_input_selection.html

Status: Fixed (was: Assigned)
All automated minus clicking on the "keyboard down" button to hide the keyboard.
Labels: Test-Complete
Status: Verified (was: Fixed)
Nice. Let me know if the one mentioned in Comment #3 ever gets automated. The others are now removed from the manual test pass. Thanks!

Sign in to add a comment