From 28da8a4f07678d9983a9267e97174a9f9422648d Mon Sep 17 00:00:00 2001 From: TrickyPR <23250792+trickypr@users.noreply.github.com> Date: Sun, 11 Feb 2024 21:12:23 +1100 Subject: [PATCH] :white_check_mark: Add tests for pageActions I guess..? --- .../components/omnibox/PageAction.svelte | 13 +- .../shared/components/ToolbarButton.svelte | 2 + .../src/shared/customizableUI/helpers.ts | 1 - apps/content/static/gtests.html | 7 +- apps/extensions/lib/ext-browser.json | 5 + apps/extensions/lib/parent/ext-pageAction.js | 3 +- apps/extensions/lib/parent/ext-tabs.js | 9 + apps/extensions/lib/schemas/tabs.json | 1861 +++++++++++++++++ apps/extensions/lib/types/utils.d.ts | 2 +- apps/modules/lib/EPageActions.sys.mjs | 5 +- apps/modules/lib/ExtensionTestUtils.sys.mjs | 260 +++ apps/modules/lib/TestManager.sys.mjs | 89 +- apps/tests/integrations/_index.sys.mjs | 13 +- .../integrations/extensions/pageAction.mjs | 103 + libs/link/package.json | 2 +- libs/link/types/modules/EPageActions.d.ts | 2 + .../types/modules/ExtensionTestUtils.d.ts | 75 +- libs/link/types/modules/TestManager.d.ts | 22 +- pnpm-lock.yaml | 12 +- scripts/setup.ts | 2 +- 20 files changed, 2365 insertions(+), 123 deletions(-) create mode 100644 apps/extensions/lib/parent/ext-tabs.js create mode 100644 apps/extensions/lib/schemas/tabs.json create mode 100644 apps/modules/lib/ExtensionTestUtils.sys.mjs create mode 100644 apps/tests/integrations/extensions/pageAction.mjs diff --git a/apps/content/src/browser/components/omnibox/PageAction.svelte b/apps/content/src/browser/components/omnibox/PageAction.svelte index beb3673..4f66638 100644 --- a/apps/content/src/browser/components/omnibox/PageAction.svelte +++ b/apps/content/src/browser/components/omnibox/PageAction.svelte @@ -113,6 +113,10 @@ {#if pageAction.popupUrl} - + {/if}