New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 663935 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Test permissions UI surfaces on desktop

Project Member Reported by dominickn@chromium.org, Nov 9 2016

Issue description

Currently, all permissions testing on desktop mocks out the actual permission prompt UI surface, and replaces it with a stub. There is no testing of interactions with the prompt via the keyboard, or clicking on buttons.

We should have end to end tests on all desktop platforms like we have on Android where a prompt is triggered and user interaction with the prompt is tested for correctness. This will avoid bugs like  crbug.com/653497  and  crbug.com/653498 .
 

Comment 1 by raymes@chromium.org, Nov 29 2016

Components: -Internals>Permissions UI>Browser>Permissions>Prompts
Project Member

Comment 2 by bugdroid1@chromium.org, Mar 16 2017

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

commit 38424d53080c397f8cc13c6581fe937070922ac0
Author: tapted <tapted@chromium.org>
Date: Thu Mar 16 01:16:45 2017

Add "interactive" UI integration tests for PermissionRequestManager.

Existing PermissionRequestManager tests use a
MockPermissionPromptFactory which replaces the code that generates
actual UI with stubs. To get coverage of the UI creation code, and to
allow the set of permission prompts to be easily "invoked" for UI
review, extend PermissionRequestManagerBrowserTest with one that uses
"real" UI rather than a mock.

Then, add "Dialog" BrowserTests for a range of permission types that can
be requested. These are run on the bots or (optionally) interactively
with a command such as `browser_tests
--gtest_filter=BrowserDialogTest.Invoke --interactive
--dialog=PermissionDialogTest.InvokeDialog_multiple`

BUG= 605667 , 663935

Review-Url: https://codereview.chromium.org/2569703004
Cr-Commit-Position: refs/heads/master@{#457296}

[modify] https://crrev.com/38424d53080c397f8cc13c6581fe937070922ac0/chrome/browser/media/webrtc/media_stream_devices_controller.h
[modify] https://crrev.com/38424d53080c397f8cc13c6581fe937070922ac0/chrome/browser/permissions/permission_request_manager_browsertest.cc

Components: Tests>Missing

Comment 4 by est...@chromium.org, Nov 10 2017

Labels: Hotlist-EnamelAndFriendsFixIt

Comment 5 by est...@chromium.org, Feb 18 2018

Labels: -Hotlist-EnamelAndFriendsFixIt

Sign in to add a comment