mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
We lose information about the target in aggregated issue, so for now create primary key from issue details to get the right target. Bug: chromium:1115421 Change-Id: I2cde1f3db599ee989e45f36518316ba9693e76ab Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2352726 Reviewed-by: Sigurd Schneider <sigurds@chromium.org> Commit-Queue: Kateryna Prokopenko <kprokopenko@google.com>
23 lines
992 B
TypeScript
23 lines
992 B
TypeScript
// Copyright 2020 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 {goToResource} from '../../shared/helper.js';
|
|
import {describe, it} from '../../shared/mocha-extensions.js';
|
|
import {waitForSelectedTreeElementSelectorWhichIncludesText} from '../helpers/elements-helpers.js';
|
|
import {expandIssue, navigateToIssuesTab, revealNodeInElementsPanel} from '../helpers/issues-helpers.js';
|
|
|
|
// TODO: Add a second node reveal test, where am issue is produced by an OOPIF
|
|
|
|
describe('The Issues tab', async () => {
|
|
it('should reveal an element in the Elements panelwhen the node icon is clicked', async () => {
|
|
await goToResource('elements/element-reveal-inline-issue.html');
|
|
|
|
await navigateToIssuesTab();
|
|
await expandIssue();
|
|
await revealNodeInElementsPanel();
|
|
|
|
await waitForSelectedTreeElementSelectorWhichIncludesText('alert("This should be blocked by CSP");');
|
|
});
|
|
});
|