blob: 29bdeba8077ebeba88ea9f15d61de1adde8efa10 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function () {
TestRunner.addResult('Tests accessibility in the settings tool shortcuts pane using the axe-core linter.');
await TestRunner.loadModule('axe_core_test_runner');
async function testShortcuts() {
// Open a view that supports context menu action to open shortcuts panel
await UI.viewManager.showView('sources');
// Open Shortcuts pane using context menu action
await UI.actionRegistry.action('settings.shortcuts').execute();
const settingsPaneElement = runtime.sharedInstance(Settings.SettingsScreen)._tabbedLocation._tabbedPane._contentElement;
await AxeCoreTestRunner.runValidation(settingsPaneElement);
}
TestRunner.runAsyncTestSuite([testShortcuts]);
})();