mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
replace last instance of ds-button with base-button
This commit is contained in:
parent
fcbe6125f3
commit
eaf738c12b
@ -150,7 +150,7 @@ describe('FilterPosts.vue', () => {
|
|||||||
describe('click on an "emotions-buttons" button', () => {
|
describe('click on an "emotions-buttons" button', () => {
|
||||||
it('calls TOGGLE_EMOTION when clicked', () => {
|
it('calls TOGGLE_EMOTION when clicked', () => {
|
||||||
const wrapper = openFilterPosts()
|
const wrapper = openFilterPosts()
|
||||||
happyEmotionButton = wrapper.findAll('button.emotions-buttons').at(1)
|
happyEmotionButton = wrapper.findAll('.emotion-button .base-button').at(1)
|
||||||
happyEmotionButton.trigger('click')
|
happyEmotionButton.trigger('click')
|
||||||
expect(mutations['posts/TOGGLE_EMOTION']).toHaveBeenCalledWith({}, 'happy')
|
expect(mutations['posts/TOGGLE_EMOTION']).toHaveBeenCalledWith({}, 'happy')
|
||||||
})
|
})
|
||||||
@ -158,7 +158,7 @@ describe('FilterPosts.vue', () => {
|
|||||||
it('sets the attribute `src` to colorized image', () => {
|
it('sets the attribute `src` to colorized image', () => {
|
||||||
getters['posts/filteredByEmotions'] = jest.fn(() => ['happy'])
|
getters['posts/filteredByEmotions'] = jest.fn(() => ['happy'])
|
||||||
const wrapper = openFilterPosts()
|
const wrapper = openFilterPosts()
|
||||||
happyEmotionButton = wrapper.findAll('button.emotions-buttons').at(1)
|
happyEmotionButton = wrapper.findAll('.emotion-button .base-button').at(1)
|
||||||
const happyEmotionButtonImage = happyEmotionButton.find('img')
|
const happyEmotionButtonImage = happyEmotionButton.find('img')
|
||||||
expect(happyEmotionButtonImage.attributes().src).toEqual('/img/svg/emoji/happy_color.svg')
|
expect(happyEmotionButtonImage.attributes().src).toEqual('/img/svg/emoji/happy_color.svg')
|
||||||
})
|
})
|
||||||
|
|||||||
@ -32,7 +32,7 @@ describe('SearchableInput.vue', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe('mount', () => {
|
describe('mount', () => {
|
||||||
let select, dropdown
|
let select
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
select = wrapper.find('.ds-select')
|
select = wrapper.find('.ds-select')
|
||||||
|
|||||||
@ -1,9 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div class="searchable-input" aria-label="search" role="search">
|
||||||
class="searchable-input"
|
|
||||||
aria-label="search"
|
|
||||||
role="search"
|
|
||||||
>
|
|
||||||
<ds-select
|
<ds-select
|
||||||
type="search"
|
type="search"
|
||||||
icon="search"
|
icon="search"
|
||||||
|
|||||||
@ -12,7 +12,12 @@
|
|||||||
>
|
>
|
||||||
<aside v-show="post.imageBlurred" class="blur-toggle">
|
<aside v-show="post.imageBlurred" class="blur-toggle">
|
||||||
<img v-show="blurred" :src="post.image | proxyApiUrl" class="preview" />
|
<img v-show="blurred" :src="post.image | proxyApiUrl" class="preview" />
|
||||||
<ds-button :icon="blurred ? 'eye' : 'eye-slash'" primary @click="blurred = !blurred" />
|
<base-button
|
||||||
|
:icon="blurred ? 'eye' : 'eye-slash'"
|
||||||
|
filled
|
||||||
|
circle
|
||||||
|
@click="blurred = !blurred"
|
||||||
|
/>
|
||||||
</aside>
|
</aside>
|
||||||
<hc-user :user="post.author" :date-time="post.createdAt">
|
<hc-user :user="post.author" :date-time="post.createdAt">
|
||||||
<template v-slot:dateTime>
|
<template v-slot:dateTime>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user