feat: share reviewed website archives and repair companion setup flows

This commit is contained in:
archipelago
2026-10-08 12:18:45 -04:00
parent 08bffdb43d
commit e5d77916d4
17 changed files with 394 additions and 20 deletions
@@ -82,9 +82,12 @@ 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('input[list="guest-sharing-apps"]').setValue('not a supported app')
await wrapper.get('button[aria-haspopup="listbox"]').trigger('click')
await wrapper.get('input[role="combobox"]').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)')
expect(wrapper.text()).toContain('No matching apps')
await wrapper.get('input[role="combobox"]').setValue('Nextcloud')
await wrapper.get('[role="option"]').trigger('click')
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')