Skip to content

Commit

Permalink
fixup! fixup! add frontend support for message reminders
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Aug 7, 2023
1 parent b60303c commit 18659fc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ describe('Message.vue', () => {
bottom: 0,
left: 0,
},
getMessagesListScroller: jest.fn(),
}

testStoreConfig = cloneDeep(storeConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('MessageButtonsBar.vue', () => {
let testStoreConfig
let store
let messageProps
let injected
let conversationProps
let getActorTypeMock

Expand Down Expand Up @@ -87,6 +88,20 @@ describe('MessageButtonsBar.vue', () => {

beforeEach(() => {
store = new Store(testStoreConfig)

injected = {
scrollerBoundingClientRect: {
x: 0,
y: 0,
width: 0,
height: 0,
top: 0,
right: 0,
bottom: 0,
left: 0,
},
getMessagesListScroller: jest.fn(),
}
})

describe('reply action', () => {
Expand All @@ -103,6 +118,7 @@ describe('MessageButtonsBar.vue', () => {
NcButton,
},
propsData: messageProps,
provide: injected,
})

const replyButton = findNcButton(wrapper, 'Reply')
Expand Down Expand Up @@ -137,6 +153,7 @@ describe('MessageButtonsBar.vue', () => {
NcButton,
},
propsData: messageProps,
provide: injected,
})

const replyButton = findNcButton(wrapper, 'Reply')
Expand Down Expand Up @@ -165,6 +182,7 @@ describe('MessageButtonsBar.vue', () => {
NcActionButton,
},
propsData: messageProps,
provide: injected,
})

const actionButton = findNcActionButton(wrapper, 'Reply privately')
Expand Down Expand Up @@ -199,6 +217,7 @@ describe('MessageButtonsBar.vue', () => {
NcActionButton,
},
propsData: messageProps,
provide: injected,
})

const actionButton = findNcActionButton(wrapper, 'Reply privately')
Expand Down Expand Up @@ -243,6 +262,7 @@ describe('MessageButtonsBar.vue', () => {
NcActionButton,
},
propsData: messageProps,
provide: injected,
})

const actionButton = findNcActionButton(wrapper, 'Delete')
Expand Down Expand Up @@ -278,6 +298,7 @@ describe('MessageButtonsBar.vue', () => {
NcActionButton,
},
propsData: messageProps,
provide: injected,
})

const actionButton = findNcActionButton(wrapper, 'Delete')
Expand Down Expand Up @@ -356,6 +377,7 @@ describe('MessageButtonsBar.vue', () => {
},

propsData: messageProps,
provide: injected,
})

const actionButton = findNcActionButton(wrapper, 'Mark as unread')
Expand Down Expand Up @@ -397,6 +419,7 @@ describe('MessageButtonsBar.vue', () => {
},

propsData: messageProps,
provide: injected,
})

Object.assign(navigator, {
Expand Down Expand Up @@ -435,6 +458,7 @@ describe('MessageButtonsBar.vue', () => {
NcActionButton,
},
propsData: messageProps,
provide: injected,
})

const actionButton = findNcActionButton(wrapper, 'first action')
Expand Down

0 comments on commit 18659fc

Please sign in to comment.