rename classes in EmbedComponent tests

This commit is contained in:
Alina Beck 2019-12-19 07:32:57 +05:30
parent 99a8efa8df
commit f2a59c8a90
2 changed files with 7 additions and 10 deletions

View File

@ -55,10 +55,7 @@
<ds-space margin-bottom="xx-small" /> <ds-space margin-bottom="xx-small" />
<ds-flex :gutter="{ base: 'xx-small', md: 'small', lg: 'large' }"> <ds-flex :gutter="{ base: 'xx-small', md: 'small', lg: 'large' }">
<ds-flex-item :width="{ base: '100%', sm: '100%', md: '100%', lg: 1.75 }"> <ds-flex-item :width="{ base: '100%', sm: '100%', md: '100%', lg: 1.75 }">
<ds-input <ds-input v-model="enableDeletionValue" class="enable-deletion-input" />
v-model="enableDeletionValue"
class="enable-deletion-input"
/>
</ds-flex-item> </ds-flex-item>
<ds-flex-item :width="{ base: '100%', sm: '100%', md: '100%', lg: 1 }"> <ds-flex-item :width="{ base: '100%', sm: '100%', md: '100%', lg: 1 }">
<base-button <base-button

View File

@ -65,13 +65,13 @@ describe('EmbedComponent.vue', () => {
}) })
it('shows the description', () => { it('shows the description', () => {
expect(wrapper.find('.embed-content p').text()).toBe( expect(wrapper.find('.content p').text()).toBe(
'Salut tout le monde ! Aujourdhui, une vidéo sur le scepticisme, nous allons parler médiumnité avec le cas de Bruno CHARVET : « Bruno, un nouveau message ». Merci de rester respectueux dans les commentaires : SOURCES : Les sources des vi...', 'Salut tout le monde ! Aujourdhui, une vidéo sur le scepticisme, nous allons parler médiumnité avec le cas de Bruno CHARVET : « Bruno, un nouveau message ». Merci de rester respectueux dans les commentaires : SOURCES : Les sources des vi...',
) )
}) })
it('shows preview Images for link', () => { it('shows preview Images for link', () => {
expect(wrapper.find('.embed-preview-image').exists()).toBe(true) expect(wrapper.find('.preview').exists()).toBe(true)
}) })
}) })
@ -92,7 +92,7 @@ describe('EmbedComponent.vue', () => {
}) })
it('show the desciption', () => { it('show the desciption', () => {
expect(wrapper.find('.embed-content p').text()).toBe( expect(wrapper.find('.content p').text()).toBe(
'Shes incapable of controlling her limbs when her kitty is around. The obsession grows every day. Ps. Thats a sleep sack shes in. Not a starfish outfit. Al...', 'Shes incapable of controlling her limbs when her kitty is around. The obsession grows every day. Ps. Thats a sleep sack shes in. Not a starfish outfit. Al...',
) )
}) })
@ -121,12 +121,12 @@ describe('EmbedComponent.vue', () => {
}) })
it('shows a simple link when a user closes the embed preview', () => { it('shows a simple link when a user closes the embed preview', () => {
wrapper.find('.embed-close-button').trigger('click') wrapper.find('.close-button').trigger('click')
expect(wrapper.vm.showLinkOnly).toBe(true) expect(wrapper.vm.showLinkOnly).toBe(true)
}) })
it('opens the data privacy overlay when a user clicks on the preview image', () => { it('opens the data privacy overlay when a user clicks on the preview image', () => {
wrapper.find('.embed-preview-image--clickable').trigger('click') wrapper.find('.preview.--clickable').trigger('click')
expect(wrapper.vm.showOverlay).toBe(true) expect(wrapper.vm.showOverlay).toBe(true)
}) })
@ -194,7 +194,7 @@ describe('EmbedComponent.vue', () => {
}) })
it('does not display image to click', () => { it('does not display image to click', () => {
expect(wrapper.find('.embed-preview-image--clickable').exists()).toBe(false) expect(wrapper.find('.preview.--clickable').exists()).toBe(false)
}) })
}) })
}) })