fix: align publishing guides and simplify app selection

This commit is contained in:
archipelago
2026-10-08 11:18:42 -04:00
parent d63c90cb5f
commit 4660a81d51
4 changed files with 77 additions and 48 deletions
@@ -82,7 +82,9 @@ describe('publishing setup', () => {
const wrapper = mount(PublishingSetup); await flushPromises()
await wrapper.get('[aria-controls="setup-step-sharing"]').trigger('click')
expect(rpcClient.call).not.toHaveBeenCalled()
await wrapper.get('select').setValue('nextcloud')
await wrapper.get('input[list="guest-sharing-apps"]').setValue('not a supported app')
expect(wrapper.text()).not.toContain('Create app-only access')
await wrapper.get('input[list="guest-sharing-apps"]').setValue('Nextcloud (nextcloud)')
await wrapper.findAll('button').find(b => b.text() === 'Create app-only access')!.trigger('click'); await flushPromises()
expect(rpcClient.call).toHaveBeenCalledWith({ method: 'publishing.access-create', params: { app_id: 'nextcloud', label: 'Guest', hours: 24 }, maxRetries: 0 })
expect(wrapper.text()).toContain('synthetic-test-token')