mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #792 from gradido/fix-flaky-test
fix: Flaky Test for Logout
This commit is contained in:
commit
cd4318731f
@ -127,12 +127,17 @@ describe('DashboardLayoutGdd', () => {
|
||||
|
||||
describe('logout', () => {
|
||||
beforeEach(async () => {
|
||||
await apolloMock.mockResolvedValue({
|
||||
data: {
|
||||
logout: 'success',
|
||||
},
|
||||
})
|
||||
await wrapper.findComponent({ name: 'sidebar' }).vm.$emit('logout')
|
||||
await flushPromises()
|
||||
})
|
||||
|
||||
it('calls the API', async () => {
|
||||
expect(apolloMock).toBeCalled()
|
||||
await expect(apolloMock).toBeCalled()
|
||||
})
|
||||
|
||||
it('dispatches logout to store', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user