test(web): cover plugin settings tab states

This commit is contained in:
ZiyaZhang
2026-08-12 02:18:11 -07:00
parent 7f058284fa
commit 14e70b1bf4
3 changed files with 22 additions and 5 deletions

View File

@@ -105,6 +105,10 @@ describe('PluginConfigSection', () => {
expect(all.getAttribute('aria-selected')).toBe('true')
expect(screen.getByText('all')).toBeTruthy()
expect(screen.getByText('configurable').closest('[role="tabpanel"]')).toHaveProperty('hidden', true)
fireEvent.click(configurable)
expect(configurable.getAttribute('aria-selected')).toBe('true')
expect(screen.getByText('all').closest('[role="tabpanel"]')).toHaveProperty('hidden', true)
})
it('leads with its own heading and intro', () => {