[l10n] Remove e2e test
Was ported to devtools-internal.
[email protected]
Bug: 1185727
Change-Id: Ia15d932906234bdfc3f5cf67b2239e5e45479652
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4026901
Auto-Submit: Simon Zünd <[email protected]>
Commit-Queue: Simon Zünd <[email protected]>
Reviewed-by: Alex Rudenko <[email protected]>
diff --git a/front_end/core/i18n/BUILD.gn b/front_end/core/i18n/BUILD.gn
index 1612d37..aac9ddf 100644
--- a/front_end/core/i18n/BUILD.gn
+++ b/front_end/core/i18n/BUILD.gn
@@ -144,11 +144,3 @@
grd_files = data
}
}
-
-# For locales that are only used by tests, and not in releases.
-devtools_pre_built("i18n_test_locales") {
- sources = [
- "i18n_test_locales-tsconfig.json",
- "locales/en-XL.json",
- ]
-}
diff --git a/front_end/core/i18n/i18n_test_locales-tsconfig.json b/front_end/core/i18n/i18n_test_locales-tsconfig.json
deleted file mode 100644
index a29d40c..0000000
--- a/front_end/core/i18n/i18n_test_locales-tsconfig.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "compilerOptions": {
- "composite": true
- },
- "files": [
- "locales/en-XL.json"
- ]
-}
\ No newline at end of file
diff --git a/test/e2e/BUILD.gn b/test/e2e/BUILD.gn
index 0df32c0..d2daf5b 100644
--- a/test/e2e/BUILD.gn
+++ b/test/e2e/BUILD.gn
@@ -27,7 +27,6 @@
"emulation",
"extensions",
"host",
- "i18n",
"inline_editor",
"issues",
"layers",
diff --git a/test/e2e/helpers/settings-helpers.ts b/test/e2e/helpers/settings-helpers.ts
index 7f2e62d..4cb0327 100644
--- a/test/e2e/helpers/settings-helpers.ts
+++ b/test/e2e/helpers/settings-helpers.ts
@@ -4,25 +4,21 @@
import {click, scrollElementIntoView, waitFor, waitForAria, waitForFunction} from '../../shared/helper.js';
-export const openPanelViaMoreTools = async (panelTitle: string, isLocalized = false) => {
+export const openPanelViaMoreTools = async (panelTitle: string) => {
// Head to the triple dot menu.
- const tripleDotMenuText = isLocalized ? 'Ĉúŝt́ôḿîźê án̂d́ ĉón̂t́r̂ól̂ D́êv́T̂óôĺŝ' : 'Customize and control DevTools';
- const tripleDotMenu = await waitForAria(tripleDotMenuText);
+ const tripleDotMenu = await waitForAria('Customize and control DevTools');
await click(tripleDotMenu);
- const moreToolsText = isLocalized ? 'M̂ór̂é t̂óôĺŝ' : 'More tools';
// Open the “More Tools” option.
- const moreTools = await waitForAria(`${moreToolsText}[role="menuitem"]`);
+ const moreTools = await waitForAria('More tools[role="menuitem"]');
await moreTools.hover();
// Click the desired menu item
const menuItem = await waitForAria(`${panelTitle}[role="menuitem"]`);
await click(menuItem);
- const panelText = isLocalized ? 'p̂án̂él̂' : 'panel';
-
// Wait for the corresponding panel to appear.
- await waitForAria(`${panelTitle} ${panelText}[role="tabpanel"]`);
+ await waitForAria(`${panelTitle} panel[role="tabpanel"]`);
};
export const openSettingsTab = async (tabTitle: string) => {
diff --git a/test/e2e/i18n/BUILD.gn b/test/e2e/i18n/BUILD.gn
deleted file mode 100644
index e0dc492..0000000
--- a/test/e2e/i18n/BUILD.gn
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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("../../../third_party/typescript/typescript.gni")
-
-node_ts_library("i18n") {
- sources = [ "i18n-debug-locale_test.ts" ]
-
- deps = [
- "../../../front_end/core/i18n:i18n_test_locales",
- "../../shared",
- "../helpers",
- ]
-}
diff --git a/test/e2e/i18n/i18n-debug-locale_test.ts b/test/e2e/i18n/i18n-debug-locale_test.ts
deleted file mode 100644
index 50525fd..0000000
--- a/test/e2e/i18n/i18n-debug-locale_test.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// 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 {setDevToolsSettings, waitFor} from '../../shared/helper.js';
-import {describe, it} from '../../shared/mocha-extensions.js';
-import {getMessageContents, waitForTheCoveragePanelToLoad} from '../helpers/coverage-helpers.js';
-import {openPanelViaMoreTools} from '../helpers/settings-helpers.js';
-
-describe('With en-US locale (default)', () => {
- it('check that the reload button has the correct text', async () => {
- await waitForTheCoveragePanelToLoad();
- const message = await getMessageContents();
-
- assert.include(message, 'Click the reload button');
- });
-});
-
-describe('With en-XL locale (debug)', () => {
- it('renders the translated text for the reload button', async () => {
- await setDevToolsSettings({language: 'en-XL'});
-
- await openPanelViaMoreTools('Ĉóv̂ér̂áĝé', true);
- await waitFor('div[aria-label="Ĉóv̂ér̂áĝé p̂án̂él̂"]');
- await waitFor('.coverage-results .landing-page');
- const message = await getMessageContents();
-
- assert.include(message, 'Ĉĺîćk̂ t́ĥé r̂él̂óâd́ b̂út̂t́ôń');
- });
-});