updated notificationstable component test

This commit is contained in:
Markus 2023-03-13 10:40:41 +01:00
parent 131b2156d0
commit 8007eb7683

View File

@ -59,8 +59,8 @@ describe('NotificationsTable.vue', () => {
wrapper = Wrapper()
})
it('renders a table', () => {
expect(wrapper.find('.ds-table').exists()).toBe(true)
it('renders a grid table', () => {
expect(wrapper.find('.notification-grid').exists()).toBe(true)
})
describe('renders 4 columns', () => {
@ -84,7 +84,7 @@ describe('NotificationsTable.vue', () => {
describe('Post', () => {
let firstRowNotification
beforeEach(() => {
firstRowNotification = wrapper.findAll('tbody tr').at(0)
firstRowNotification = wrapper.findAll('.notification-grid-row').at(0)
})
it('renders the author', () => {
@ -117,7 +117,7 @@ describe('NotificationsTable.vue', () => {
describe('Comment', () => {
let secondRowNotification
beforeEach(() => {
secondRowNotification = wrapper.findAll('tbody tr').at(1)
secondRowNotification = wrapper.findAll('.notification-grid-row').at(1)
})
it('renders the author', () => {