Skip to content

Commit 097f666

Browse files
committed
test(app): align bootstrap expectations with policy updates
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 8d7570b commit 097f666

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

src/tests/App.spec.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,28 @@ describe('App', () => {
7171
expect(wrapper.find('.left-sidebar').exists()).toBe(true)
7272
})
7373

74+
it('shows left sidebar on request route', () => {
75+
routeState.path = '/f/request'
76+
routeState.name = 'requestFiles'
77+
routeState.matched = []
78+
79+
const wrapper = mount(App, {
80+
global: {
81+
stubs: {
82+
NcContent: { template: '<div><slot /></div>' },
83+
NcAppContent: { template: '<main><slot /></main>' },
84+
NcEmptyContent: { template: '<div><slot /></div>' },
85+
LeftSidebar: { name: 'LeftSidebar', template: '<aside class="left-sidebar" />' },
86+
RightSidebar: true,
87+
DefaultPageError: true,
88+
RouterView: { template: '<div class="router-view" />' },
89+
},
90+
},
91+
})
92+
93+
expect(wrapper.find('.left-sidebar').exists()).toBe(true)
94+
})
95+
7496
it('hides left sidebar on incomplete setup routes', () => {
7597
routeState.path = '/f/incomplete'
7698
routeState.name = 'Incomplete'

0 commit comments

Comments
 (0)