Commit ff6e0e26 authored by Mike Greiling's avatar Mike Greiling

Change the way the test references the textarea

parent 6cdca608
...@@ -12,6 +12,7 @@ export default { ...@@ -12,6 +12,7 @@ export default {
<template> <template>
<textarea <textarea
ref="textarea"
rows="1" rows="1"
class="reply-placeholder-text-field js-vue-discussion-reply" class="reply-placeholder-text-field js-vue-discussion-reply"
:placeholder="placeholderText" :placeholder="placeholderText"
......
...@@ -6,7 +6,7 @@ const placeholderText = 'Test Button Text'; ...@@ -6,7 +6,7 @@ const placeholderText = 'Test Button Text';
describe('ReplyPlaceholder', () => { describe('ReplyPlaceholder', () => {
let wrapper; let wrapper;
const findTextarea = () => wrapper.find('.js-vue-discussion-reply'); const findTextarea = () => wrapper.find({ ref: 'textarea' });
beforeEach(() => { beforeEach(() => {
wrapper = shallowMount(ReplyPlaceholder, { wrapper = shallowMount(ReplyPlaceholder, {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment