Files
coredesktop-extension/TEST.md
T
davidandClaude Opus 5.5 9a9c2d7955 Add PLAN.md and TEST.md
PLAN.md lists what's left after the sibling projects menu: a real-session
test, logs for sibling updates started from the menu, and automated tests.
TEST.md has the manual checks for a real GNOME session: sibling projects,
updates and restarts, and refresh, configure and version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:39:36 -07:00

83 lines
4.0 KiB
Markdown

# Manual tests
Checks that need a real GNOME session, which `make lint` can't do. Run them
on the released package, or on `make install` and a fresh login. Record each
result in the tables below, with the date, the GNOME Shell version
(`gnome-shell --version`) and the extension's commit.
To make a sibling look out of date, move its clone back a commit:
`git -C ~/.local/share/siblings/<name> reset --hard HEAD~1`. The next
`update` or `sibling update <name>` brings it forward again.
## Sibling projects
1. With no siblings installed (`ls ~/.local/share/siblings` is empty), open
the menu. There's no **Sibling projects** item.
2. Install one with `sibling add <url>` and open the menu again. The item
shows, saying "1 installed".
3. Click **Check for updates**. The item says "1 installed, up to date" and
has no pill. The header says **Up to date** if CoreDesktop is.
4. Move the sibling back a commit (above) and click **Check for updates**.
- The item says "Newer: <name>" with a **1 new** pill.
- **Update** has a **New version** pill.
- The header says "A sibling project has a newer version".
- The top bar icon has the blue dot.
5. Click **Sibling projects**. The dialog lists it with its installed version,
"… is available", a **New version** pill and an **Update** button.
6. Click **Update**. A terminal opens running `sibling update <name>`, and the
item's pill says **Running…**. When it ends, a notification says
"Update <name> finished". Without clicking **Check for updates**, the
menu soon shows it up to date, and the dot and pills are gone.
7. Move two siblings back. The dialog has **Update all**, which runs
`sibling update` for every sibling.
8. Edit a tracked file in a sibling's clone. Its row says "with local
changes". Undo the edit with `git -C … checkout .`.
9. Turn off the network and open the dialog. Each row says **Couldn't
check**, and the item says "couldn't check N".
10. Start **Update** and open the dialog: each row says **Running…** and its
**Update** button can't be clicked. Then start **Refresh** instead, and
click a sibling's **Update** while it runs. A notification says to wait
for the current run to finish.
11. Close a sibling update's terminal window before it's done. The
notification says it was stopped.
12. Remove the sibling (`sibling remove <name>`) and open the menu. The item
is gone.
| Date | GNOME | Commit | Result |
|------|-------|--------|--------|
| | | | |
## Updates and restarts
1. On a machine behind CoreDesktop's `main`, click **Check for updates**. The
header says "<version> is available", **Update** has **New version**, and
the icon has the blue dot.
2. Click **Update**. The icon pulses and the header says "Updating…". When it
ends, a notification says how it went.
3. After an update that needs a restart, the header says "Restart to finish
the last update", the dot is orange, and **Restart to finish updating**
shows. Its notification's **Restart now** opens GNOME's restart dialog.
4. Make an update fail (e.g. no network partway through). The notification
offers **Open log** and **Report problem**.
5. Disable and re-enable the extension while an update runs
(`gnome-extensions disable`, then `enable`). Its terminal keeps going,
and the menu still shows **Running…**.
| Date | GNOME | Commit | Result |
|------|-------|--------|--------|
| | | | |
## Refresh, configure and version
1. **Refresh** asks first, with what it does. Turn that off in the settings
and it runs straight away.
2. **Configure** shows **N to do** or **All set**. Its dialog lists every
item with **Done** or **To do**, and **Set up** or **Change** runs
`configure <item>` in a terminal.
3. **Version** shows the report with newer versions highlighted, including
sibling projects. **Copy** copies it and **Update now** runs update.
| Date | GNOME | Commit | Result |
|------|-------|--------|--------|
| | | | |