Skip to content

Commit f4368fb

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[cleanup] Remove unnecessary typecasting
This types are now properly inferred by TypeScript. Bug: none Change-Id: Ic7ccd8221b2eb70d5a23d7cdd6e1b1f393ace8b7 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6765131 Commit-Queue: Nikolay Vitkov <[email protected]> Auto-Submit: Nikolay Vitkov <[email protected]> Reviewed-by: Jack Franklin <[email protected]> Commit-Queue: Jack Franklin <[email protected]>
1 parent 235aa37 commit f4368fb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

test/e2e/helpers/application-helpers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import type * as puppeteer from 'puppeteer-core';
6-
75
import type {DevToolsPage} from '../../e2e_non_hosted/shared/frontend-helper.js';
86
import {
97
$$,
@@ -241,7 +239,7 @@ export async function getStorageItemsData(
241239
}
242240

243241
export async function filterStorageItems(filter: string, devToolsPage = getBrowserAndPagesWrappers().devToolsPage) {
244-
const element = await devToolsPage.$('.toolbar-input-prompt') as puppeteer.ElementHandle;
242+
const element = await devToolsPage.$('.toolbar-input-prompt');
245243
await expectVeEvents(
246244
[veImpressionsUnder('Panel: resources > Pane: cookies-data > Toolbar', [veImpression('TextField', 'filter')])],
247245
undefined, devToolsPage);

test/e2e_non_hosted/performance/timeline/treeview_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('The Performance tool, Bottom-up panel', function() {
109109
await navigateToBottomUpTab(devToolsPage, 'url');
110110

111111
// use group-by drop down and validate activities
112-
const timelineTree = await devToolsPage.$('.timeline-tree-view') as puppeteer.ElementHandle;
112+
const timelineTree = await devToolsPage.$('.timeline-tree-view');
113113
await devToolsPage.waitForElementWithTextContent('h2_with_suffix', timelineTree);
114114
const dropdown = await devToolsPage.waitFor('select[aria-label="No grouping"]');
115115
await dropdown.evaluate(el => {

0 commit comments

Comments
 (0)