mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #6107 from Ocelot-Social-Community/5982-fix-donation-bar-blink
fix(webapp): fix donation bar blink
This commit is contained in:
commit
387d70a907
@ -134,15 +134,15 @@ describe('PostIndex', () => {
|
||||
})
|
||||
|
||||
describe('donation-info', () => {
|
||||
it('shows donation-info on default', () => {
|
||||
it('hides donation-info on default', () => {
|
||||
wrapper = Wrapper()
|
||||
expect(wrapper.find('.top-info-bar').exists()).toBe(true)
|
||||
expect(wrapper.find('.top-info-bar').exists()).toBe(false)
|
||||
})
|
||||
|
||||
it('hides donation-info if not "showDonations"', async () => {
|
||||
it('shows donation-info if "showDonations"', async () => {
|
||||
wrapper = Wrapper()
|
||||
await wrapper.setData({ showDonations: false })
|
||||
expect(wrapper.find('.top-info-bar').exists()).toBe(false)
|
||||
await wrapper.setData({ showDonations: true })
|
||||
expect(wrapper.find('.top-info-bar').exists()).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -152,7 +152,7 @@ export default {
|
||||
hideByScroll: false,
|
||||
revScrollpos: 0,
|
||||
showFilter: false,
|
||||
showDonations: true,
|
||||
showDonations: false,
|
||||
goal: 15000,
|
||||
progress: 7000,
|
||||
posts: [],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user