Files
react-native-devtools-frontend/test/e2e/elements/reveal-correct-node_test.ts
T
Kateryna Prokopenko 314d6b7155 [issues] Get target for each issue individually (instead of main target) to get correct node in case of out of process iframes
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>
2020-08-19 07:32:37 +00:00

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");');
});
});