From 4f9bae3f3f8c9a731e1b1bbc1682cf7580ff4a49 Mon Sep 17 00:00:00 2001 From: Leandro Rodrigues Date: Sun, 17 May 2026 11:25:51 -0300 Subject: [PATCH] chore: update libraries of Gsify and refactor some testes and code with more tests added --- AGENTS.md | 5 + justfile | 18 +- metadata.json | 2 +- package.json | 12 +- src/core/adapters/shell.ts | 2 - src/core/context.ts | 1 - src/extension.ts | 5 +- src/module.ts | 26 +- src/moduleDefinition.ts | 25 - .../appSearchTooltip/appSearchTooltip.ts | 5 +- .../autoThemeSwitcher/autoThemeSwitcher.ts | 3 +- src/modules/bluetoothMenu/bluetoothMenu.ts | 23 +- src/modules/bluetoothMenu/deviceItem.ts | 18 +- src/modules/dock/dock.ts | 9 +- src/modules/dock/hotArea.ts | 14 +- src/modules/dock/intellihide.ts | 12 +- src/modules/iconWeave/iconWeave.ts | 19 +- src/modules/noOverview/noOverview.ts | 2 +- src/modules/pipOnTop/pipOnTop.ts | 6 +- src/modules/privacy/privacy.ts | 2 +- src/modules/privacy/privacyPanel.ts | 17 +- src/modules/themeChanger/themeChanger.ts | 2 +- src/modules/volumeMixer/mixerItem.ts | 32 +- src/modules/volumeMixer/mixerList.ts | 20 +- src/modules/volumeMixer/mixerPanel.ts | 24 +- src/modules/volumeMixer/streamSlider.ts | 67 +- src/modules/volumeMixer/volumeMixer.ts | 32 +- .../xwaylandIndicator/xwaylandIndicator.ts | 17 +- src/prefs.ts | 2 - src/prefsMetadata.ts | 4 +- src/registry.ts | 4 +- src/shared/icons.ts | 28 +- src/shared/ui/dash.ts | 29 +- src/types/globals.d.ts | 3 +- src/types/gnome-shell.d.ts | 48 +- tests/shell/auroraAppSearchTooltip.js | 26 +- tests/shell/auroraAutoThemeSwitcher.js | 27 +- tests/shell/auroraBasic.js | 17 +- tests/shell/auroraBluetoothMenu.js | 12 +- tests/shell/auroraDndOnShare.js | 5 + tests/shell/auroraDock.js | 26 +- tests/shell/auroraIconWeave.js | 28 +- tests/shell/auroraModuleToggle.js | 27 +- tests/shell/auroraNoOverview.js | 27 +- tests/shell/auroraPipOnTop.js | 28 +- tests/shell/auroraPrivacyPanel.js | 5 + tests/shell/auroraThemeChanger.js | 27 +- tests/shell/auroraVolumeMixer.js | 26 +- tests/shell/auroraXwaylandIndicator.js | 28 +- tests/shell/testUtils.js | 83 + yarn.lock | 1364 +++++++---------- 51 files changed, 1020 insertions(+), 1274 deletions(-) delete mode 100644 src/moduleDefinition.ts create mode 100644 tests/shell/testUtils.js diff --git a/AGENTS.md b/AGENTS.md index ecd97e9..984ee94 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,6 +11,11 @@ After **any** code change, always run these two commands and fix any errors befo 1. `just validate` — type-checks the TypeScript source without emitting output 2. `just toolbox test-all` — builds and runs all integration tests inside the Fedora toolbox, printing a pass/fail summary +To read only the relevant output from the test run (pass/fail summary): +```sh +just toolbox test-all 2>&1 | grep -E "PASS:|FAIL:|Results:" +``` + Do not leave a task incomplete if either command reports errors or failures. ## Commands diff --git a/justfile b/justfile index 068be90..a9a7f1b 100644 --- a/justfile +++ b/justfile @@ -14,10 +14,11 @@ build: deps yarn build cp metadata.json dist/ cp -r data/schemas dist/ 2>/dev/null || true + glib-compile-schemas dist/schemas/ cp -r data/icons dist/ 2>/dev/null || true just compile-mo -package: +package: build #!/usr/bin/env bash set -e mkdir -p dist/target @@ -165,6 +166,19 @@ toolbox action *args: toolbox rm --force {{ toolbox_name }} echo "Toolbox '{{ toolbox_name }}' removed." ;; + "test") + just package + EXT="dist/target/{{ uuid }}.shell-extension.zip" + SCRIPT="{{ args }}" + if [ -z "$SCRIPT" ]; then + echo "Usage: just toolbox test