Commit a695de78 authored by hcarmona's avatar hcarmona Committed by Commit bot

Ignore a11y failures in extension browser_tests that enter dev mode.

BUG=463245

Review URL: https://codereview.chromium.org/1104883002

Cr-Commit-Position: refs/heads/master@{#327178}
parent 36273629
...@@ -88,6 +88,7 @@ ExtensionSettingsWebUITest.prototype = { ...@@ -88,6 +88,7 @@ ExtensionSettingsWebUITest.prototype = {
/** @protected */ /** @protected */
verifyDeveloperModeWorks: function() { verifyDeveloperModeWorks: function() {
this.ignoreDevModeA11yFailures();
var extensionSettings = getRequiredElement('extension-settings'); var extensionSettings = getRequiredElement('extension-settings');
assertFalse(extensionSettings.classList.contains('dev-mode')); assertFalse(extensionSettings.classList.contains('dev-mode'));
$('toggle-dev-on').click(); $('toggle-dev-on').click();
...@@ -114,7 +115,25 @@ ExtensionSettingsWebUITest.prototype = { ...@@ -114,7 +115,25 @@ ExtensionSettingsWebUITest.prototype = {
this.verifyDeveloperModeWorks, this.verifyDeveloperModeWorks,
testDone]; testDone];
this.nextStep(); this.nextStep();
} },
/**
* TODO(hcarmona): Remove this as part of fixing crbug.com/463245.
* Will ignore accessibility failures caused by the transition when developer
* mode is enabled.
* @protected
*/
ignoreDevModeA11yFailures: function() {
this.accessibilityAuditConfig.ignoreSelectors(
'focusableElementNotVisibleAndNotAriaHidden',
'#load-unpacked');
this.accessibilityAuditConfig.ignoreSelectors(
'focusableElementNotVisibleAndNotAriaHidden',
'#pack-extension');
this.accessibilityAuditConfig.ignoreSelectors(
'focusableElementNotVisibleAndNotAriaHidden',
'#update-extensions-now');
},
}; };
// Verify that developer mode doesn't change behavior when the number of // Verify that developer mode doesn't change behavior when the number of
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment