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", () => { Then("I select a user entry", () => {
cy.get(".searchable-input .userinfo") cy.get(".searchable-input .user-info")
.first() .first()
.trigger("click"); .trigger("click");
}) })

View File

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

View File

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