Fix failing tests

This commit is contained in:
mattwr18 2020-01-13 20:57:25 +01:00
parent 2cc350936f
commit 77ef3b0406
3 changed files with 5 additions and 5 deletions

View File

@ -87,7 +87,7 @@ Then(
);
Then("I select a user entry", () => {
cy.get(".searchable-input .userinfo")
cy.get(".searchable-input .user-info")
.first()
.trigger("click");
})

View File

@ -1,6 +1,6 @@
import { storiesOf } from '@storybook/vue'
import { withA11y } from '@storybook/addon-a11y'
import HcPostCard from './HcPostCard.vue'
import HcPostCard from './PostCard.vue'
import helpers from '~/storybook/helpers'
helpers.init()

View File

@ -1,5 +1,5 @@
import { mount, RouterLinkStub } from '@vue/test-utils'
import User from './User.vue'
import UserTeaser from './UserTeaser.vue'
import Vuex from 'vuex'
const localVue = global.localVue
@ -7,7 +7,7 @@ const filter = jest.fn(str => str)
localVue.filter('truncate', filter)
describe('User', () => {
describe('UserTeaser', () => {
let propsData
let mocks
let stubs
@ -35,7 +35,7 @@ describe('User', () => {
const store = new Vuex.Store({
getters,
})
return mount(User, { store, propsData, mocks, stubs, localVue })
return mount(UserTeaser, { store, propsData, mocks, stubs, localVue })
}
it('renders anonymous user', () => {