mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 04:26:32 +08:00
DISABLE_THIRD_PARTY_CHECK=big clang format run against all files in front_end and test/ Bug: 1319340 Change-Id: I1fff63cb07544ccd0e3059fc901f9a48ff4af13b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598879 Reviewed-by: Alex Rudenko <alexrudenko@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
49 lines
1.5 KiB
TypeScript
49 lines
1.5 KiB
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 {assert} from 'chai';
|
|
|
|
import {getBrowserAndPages, getTestServerPort, step} from '../../shared/helper.js';
|
|
import {
|
|
doubleClickSourceTreeItem,
|
|
getStorageItemsData,
|
|
navigateToApplicationTab,
|
|
} from '../helpers/application-helpers.js';
|
|
|
|
const SESSION_STORAGE_SELECTOR = '[aria-label="Session Storage"].parent';
|
|
let DOMAIN_SELECTOR: string;
|
|
|
|
describe('The Application Tab', async () => {
|
|
before(async () => {
|
|
DOMAIN_SELECTOR = `${SESSION_STORAGE_SELECTOR} + ol > [aria-label="https://localhost:${getTestServerPort()}"]`;
|
|
});
|
|
|
|
it('shows Session Storage keys and values', async () => {
|
|
const {target} = getBrowserAndPages();
|
|
|
|
await step('navigate to session-storage resource and open Application tab', async () => {
|
|
await navigateToApplicationTab(target, 'session-storage');
|
|
});
|
|
|
|
await step('open the domain storage', async () => {
|
|
await doubleClickSourceTreeItem(SESSION_STORAGE_SELECTOR);
|
|
await doubleClickSourceTreeItem(DOMAIN_SELECTOR);
|
|
});
|
|
|
|
await step('check that storage data values are correct', async () => {
|
|
const dataGridRowValues = await getStorageItemsData(['key', 'value']);
|
|
assert.deepEqual(dataGridRowValues, [
|
|
{
|
|
key: 'firstKey',
|
|
value: 'firstValue',
|
|
},
|
|
{
|
|
key: 'secondKey',
|
|
value: '{"field":"complexValue","primitive":2}',
|
|
},
|
|
]);
|
|
});
|
|
});
|
|
});
|