blob: 7b9890b4c33bdc1ff2ad0a677d326921bdbaaf8e [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {
openSourcesPanel,
} from '../helpers/sources-helpers.js';
describe('The Sources panel', () => {
describe('contains a debugger sidebar', () => {
it('which can be toggled via Ctrl+Shift+H shortcut keyboard', async ({devToolsPage}) => {
await openSourcesPanel(devToolsPage);
// Make sure that the debug sidebar is not collapsed in initial state
await devToolsPage.waitFor('.scripts-debug-toolbar');
// Collapse debug sidebar
await devToolsPage.pressKey('h', {shift: true, control: true});
await devToolsPage.waitForNone('.scripts-debug-toolbar');
// Expand debug sidebar
await devToolsPage.pressKey('h', {shift: true, control: true});
await devToolsPage.waitFor('.scripts-debug-toolbar');
});
});
});