Testing kit: agree to the hosts a plugin takes from its own settings
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- developer-experience, testing-qa
Direzione di ricerca
Start in packages/teme-testing at PluginUnderTest::changeSettings() and follow the settings-save path to where the "Agree to let the plugin connect to <host>" check rejects hosts listed in the manifest's hostsFrom. Find how the real admin agreement is recorded (who agreed, for which host) so the kit can replay it, then expose it as an agreeHosts argument or an agreeToHosts() step. Done means a plugin test can save a url/urls setting through the kit and reach the real outbound door without a hand-written fake.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A plugin that talks to a server its owner chooses (a Mastodon server, another site, a hub) takes that host from one of its own url or urls settings, listed under hostsFrom in its manifest. On a real site, saving a new host in such a setting asks the person to tick "Saving lets the plugin connect to ...".
In a test, PluginUnderTest::changeSettings() saves the setting as an administrator, but the kit has no way to tick that agreement, so the save is refused with "Agree to let the plugin connect to , or remove them." The setting can't be saved, so the outbound door never allows the host, and the plugin's main path (the call to that server) can't be tested through the kit's outbound fake.
Expected: a way to agree to the host as an administrator does, for example changeSettings([...], agreeHosts: true) or an agreeToHosts() step that records the agreement and who gave it, running the same checks.
Where: packages/teme-testing, PluginUnderTest::changeSettings().
The plugin's own tests currently fall back to a hand-written fake of the outbound door for that path, which skips the door's checks.
🤖 Generated with Claude Code
- Lingua principale
- PHP
- Stelle
- 1
- Fork
- 1
- Merge medio
- 1h 40m
- PR unite (30g)
- 143
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di temecms/teme
-
area/admin type/enhancement when/soon
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
area/media type/enhancement when/soon
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
area/admin type/bug when/soon
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
area/import type/documentation when/soon
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
area/admin area/import type/bug when/later
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di temecms/teme
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
I maintainer di solito rispondono entro 2 giorni
-
P2 Team S Type: Infrastructure
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
google/site-kit-wp#14271 ·
I maintainer di solito rispondono entro 2 giorni
-
Display price Views field throws TypeError when the row has no productForse già presa @albanycomputers l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
backdrop-contrib/ubercart#610 ·