Skip to content

Commit ae57b63

Browse files
committed
test(policy): cover files-style filter entrypoint in workbench
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent e625e15 commit ae57b63

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ function mountWorkbench() {
4040
NcIconSvgWrapper: { template: '' },
4141
NcNoteCard: { template: '<div class="note-card"><slot /></div>' },
4242
NcDialog: { template: '<div class="dialog"><slot /></div>' },
43+
NcPopover: { template: '<div class="nc-popover-stub"><slot name="trigger" /><slot /></div>' },
44+
NcChip: { template: '<button class="nc-chip-stub">{{ text }}</button>', props: ['text'] },
4345
NcCheckboxRadioSwitch: { template: '<input type="checkbox" @change="$emit(\'update:modelValue\', $event.target.checked)" />' },
4446
NcSelectUsers: { template: '<div class="nc-select-users-stub" />' },
4547
NcActions: { template: '<div><slot /></div>' },
@@ -102,8 +104,8 @@ describe('RealPolicyWorkbench.vue', () => {
102104

103105
const text = wrapper.text()
104106

105-
// Validate scope controls are explicitly labeled as table filter
106-
expect(text).toContain('Filter table by scope')
107+
// Validate scope filter follows Files-like filter entrypoint
108+
expect(text).toContain('Filters')
107109

108110
// Validate search/filter UI exists
109111
expect(wrapper.find('input[type="text"]').exists()).toBe(true)

0 commit comments

Comments
 (0)