Skip to content

Commit 2232df9

Browse files
committed
test(policy): cover explicit scope filter labeling
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent e162ca1 commit 2232df9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/tests/views/Settings/SettingsPolicyWorkbench.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,17 @@ describe('RealPolicyWorkbench.vue', () => {
9494
expect(wrapper.text()).not.toContain('Instance default')
9595
})
9696

97-
it('shows signing order with sophisticated visual interface: filter, toggle, counts, and scopes', () => {
97+
it('shows signing order with sophisticated visual interface: filter, toggle, counts, and scopes', async () => {
9898
const wrapper = mountWorkbench()
99+
const openPolicyButton = wrapper.findAll('button').find((button) => button.text().includes('Open policy'))
100+
expect(openPolicyButton).toBeTruthy()
101+
await openPolicyButton?.trigger('click')
99102

100103
const text = wrapper.text()
101104

105+
// Validate scope controls are explicitly labeled as table filter
106+
expect(text).toContain('Filter table by scope')
107+
102108
// Validate search/filter UI exists
103109
expect(wrapper.find('input[type="text"]').exists()).toBe(true)
104110
expect(text).toContain('Find setting')

0 commit comments

Comments
 (0)