| @@ -151,6 +151,11 @@ describe('settings button vocabulary', () => { |
| 151 | 151 | describe('settings Button adoption', () => { |
| 152 | 152 | const SITES = [ |
| 153 | 153 | { paint: 'btn-danger btn-sm', name: 'Rotate', bindings: ['loading'] }, |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + { paint: 'btn-quiet btn-sm', name: 'Issue key', bindings: ['loading', 'label'] }, |
| 158 | + { paint: 'btn-danger btn-sm', name: 'Revoke', bindings: ['loading'] }, |
| 154 | 159 | { paint: 'btn-cta btn-solid', name: 'Invite', bindings: ['loading'] }, |
| 155 | 160 | { paint: 'btn-cta btn-solid', name: 'Add channel', bindings: ['loading'] }, |
| 156 | 161 | { paint: 'flex-none whitespace-nowrap btn-cta btn-danger', name: '', bindings: ['loading'] }, |
| @@ -167,7 +172,7 @@ describe('settings Button adoption', () => { |
| 167 | 172 | |
| 168 | 173 | const calls = markup.match(/<Button\b[\s\S]*?<\/Button>/g) ?? [] |
| 169 | 174 | |
| 170 | | - test('there are exactly five, and none of them re-states a paint', () => { |
| 175 | + test('there are exactly as many as are registered, and none re-states a paint', () => { |
| 171 | 176 | expect(calls).toHaveLength(SITES.length) |
| 172 | 177 | for (const [i, call] of calls.entries()) { |
| 173 | 178 | expect(/className="([^"]*)"/.exec(call)?.[1]).toBe(SITES[i].paint) |
| @@ -183,7 +188,7 @@ describe('settings Button adoption', () => { |
| 183 | 188 | for (const [i, call] of calls.entries()) { |
| 184 | 189 | const dependencies = new Set<string>() |
| 185 | 190 | const html = await processComponents(call, { |
| 186 | | - __stx_client_signal_names: ['rotating', 'inviting', 'adding', 'archiving', 'modalBusy', 'modalReady', 'modalConfirmLabel'], |
| 191 | + __stx_client_signal_names: ['rotating', 'inviting', 'adding', 'archiving', 'modalBusy', 'modalReady', 'modalConfirmLabel', 'readKeyBusy', 'hasReadKey'], |
| 187 | 192 | __importedComponents: new Map([['button', resolve(ROOT, 'node_modules/@stacksjs/components/src/ui/button/Button.stx')]]), |
| 188 | 193 | }, FILE, { componentsDir: resolve(ROOT, 'resources/components') }, dependencies) |
| 189 | 194 | |