Files
react-native-devtools-frontend/test/e2e/quick_open/QuickOpen_test.ts
T
Andres Olivares 0fea598ca7 Adds e2e test for Quick Open file list
It tests that the available files are listed when the file quick-open is
opened.

Bug: 1195352
Change-Id: I4b96a1443c963d8f06f247ccf7c01d9f41fdfa25
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2807964
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-04-07 14:45:19 +00:00

19 lines
704 B
TypeScript

// Copyright 2021 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.
import {assert} from 'chai';
import {goToResource} from '../../shared/helper.js';
import {describe, it} from '../../shared/mocha-extensions.js';
import {getMenuItemTitleAtPosition, openFileQuickOpen} from '../helpers/quick_open-helpers.js';
describe('Quick Open menu', () => {
it('lists available files', async () => {
await goToResource('pages/hello-world.html');
await openFileQuickOpen();
const firstItemTitle = await getMenuItemTitleAtPosition(0);
assert.strictEqual(firstItemTitle, 'hello-world.html');
});
});