Fix js unit test for report modal

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-09-21 08:35:22 +02:00
parent 6a9fba7db8
commit 655ae4f9a1
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
3 changed files with 5 additions and 5 deletions

View File

@ -49,9 +49,9 @@
<o-field
:label="t('Additional comments')"
label-for="additonal-comments"
label-for="additional-comments"
>
<o-input v-model="content" type="textarea" id="additonal-comments" />
<o-input v-model="content" type="textarea" id="additional-comments" />
</o-field>
<div class="control" v-if="outsideDomain">

View File

@ -63,7 +63,7 @@ describe("ReportModal", () => {
},
});
const commentContainer = wrapper.find("article.media");
const commentContainer = wrapper.find("article");
expect(commentContainer.find("strong").text()).toContain(
"I am the comment author"
);

View File

@ -9,8 +9,8 @@ exports[`ReportModal > renders report modal with basic informations and submits
</div>
<div class=\\"\\" data-v-e0cceef3=\\"\\">
<!--v-if-->
<div class=\\"o-field o-field--filled\\" data-v-e0cceef3=\\"\\"><label for=\\"additonal-comments\\" class=\\"o-field__label\\">Additional comments</label>
<div class=\\"o-ctrl-input\\" data-v-e0cceef3=\\"\\"><textarea id=\\"additonal-comments\\" class=\\"o-input o-input__textarea\\"></textarea>
<div class=\\"o-field o-field--filled\\" data-v-e0cceef3=\\"\\"><label for=\\"additional-comments\\" class=\\"o-field__label\\">Additional comments</label>
<div class=\\"o-ctrl-input\\" data-v-e0cceef3=\\"\\"><textarea id=\\"additional-comments\\" class=\\"o-input o-input__textarea\\"></textarea>
<!--v-if-->
<!--v-if-->
<!--v-if-->