diff --git a/webapp/components/NotificationsTable/NotificationsTable.spec.js b/webapp/components/NotificationsTable/NotificationsTable.spec.js index 80095666f..ef4e19b01 100644 --- a/webapp/components/NotificationsTable/NotificationsTable.spec.js +++ b/webapp/components/NotificationsTable/NotificationsTable.spec.js @@ -89,8 +89,8 @@ describe('NotificationsTable.vue', () => { }) it('renders the author', () => { - const username = firstRowNotification.find('.username') - expect(username.text()).toEqual(postNotification.from.author.name) + const userinfo = firstRowNotification.find('.user-teaser > .info') + expect(userinfo.text()).toContain(postNotification.from.author.name) }) it('renders the reason for the notification', () => { @@ -122,8 +122,8 @@ describe('NotificationsTable.vue', () => { }) it('renders the author', () => { - const username = secondRowNotification.find('.username') - expect(username.text()).toEqual(commentNotification.from.author.name) + const userinfo = secondRowNotification.find('.user-teaser > .info') + expect(userinfo.text()).toContain(commentNotification.from.author.name) }) it('renders the reason for the notification', () => { diff --git a/webapp/components/features/ReportRow/ReportRow.vue b/webapp/components/features/ReportRow/ReportRow.vue index cd23d2ae2..72fd8d24e 100644 --- a/webapp/components/features/ReportRow/ReportRow.vue +++ b/webapp/components/features/ReportRow/ReportRow.vue @@ -19,11 +19,7 @@ - + {{ linkText | truncate(50) }} @@ -33,11 +29,7 @@ - + diff --git a/webapp/components/generic/SearchableInput/SearchableInput.spec.js b/webapp/components/generic/SearchableInput/SearchableInput.spec.js index 5594896fb..c685ae3e6 100644 --- a/webapp/components/generic/SearchableInput/SearchableInput.spec.js +++ b/webapp/components/generic/SearchableInput/SearchableInput.spec.js @@ -97,7 +97,7 @@ describe('SearchableInput.vue', () => { it("pushes to user's profile", async () => { select.element.value = 'Bob' select.trigger('input') - const users = wrapper.findAll('.user-slug') + const users = wrapper.findAll('.slug') const bob = users.filter(item => item.text().match(/@bob-der-baumeister/)) bob.trigger('click') await Vue.nextTick()