Fix front-end tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
e606090f17
commit
e280820e9c
@ -47,6 +47,7 @@
|
||||
<small class="has-text-grey-dark">{{
|
||||
$options.filters.formatDateTimeString(
|
||||
new Date(post.insertedAt),
|
||||
undefined,
|
||||
false
|
||||
)
|
||||
}}</small>
|
||||
|
@ -29,6 +29,7 @@
|
||||
:title="
|
||||
$options.filters.formatDateTimeString(
|
||||
post.updatedAt,
|
||||
undefined,
|
||||
true,
|
||||
'short'
|
||||
)
|
||||
|
@ -4,11 +4,15 @@ import App from "@/App.vue";
|
||||
import VueRouter from "vue-router";
|
||||
import Buefy from "buefy";
|
||||
import flushPromises from "flush-promises";
|
||||
import VueAnnouncer from "@vue-a11y/announcer";
|
||||
import VueSkipTo from "@vue-a11y/skip-to";
|
||||
|
||||
const localVue = createLocalVue();
|
||||
config.mocks.$t = (key: string): string => key;
|
||||
localVue.use(VueRouter);
|
||||
localVue.use(Buefy);
|
||||
localVue.use(VueAnnouncer);
|
||||
localVue.use(VueSkipTo);
|
||||
|
||||
describe("routing", () => {
|
||||
test("Homepage", async () => {
|
||||
|
@ -12,7 +12,7 @@ exports[`CommentTree renders a comment tree with comments 1`] = `
|
||||
<div class="field">
|
||||
<div class="field">
|
||||
<p class="control">
|
||||
<editor-stub mode="comment" value=""></editor-stub>
|
||||
<editor-stub mode="comment" aria-label="Comment body" value=""></editor-stub>
|
||||
</p>
|
||||
<!---->
|
||||
</div>
|
||||
@ -54,7 +54,7 @@ exports[`CommentTree renders an empty comment tree 1`] = `
|
||||
<div class="field">
|
||||
<div class="field">
|
||||
<p class="control">
|
||||
<editor-stub mode="comment" value=""></editor-stub>
|
||||
<editor-stub mode="comment" aria-label="Comment body" value=""></editor-stub>
|
||||
</p>
|
||||
<!---->
|
||||
</div>
|
||||
|
@ -1,3 +1,3 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`App component renders a Vue component 1`] = `<b-navbar-stub type="is-secondary" wrapperclass="container" closeonclick="true" mobileburger="true"><template></template> <template></template> <template></template></b-navbar-stub>`;
|
||||
exports[`App component renders a Vue component 1`] = `<b-navbar-stub type="is-secondary" wrapperclass="container" closeonclick="true" mobileburger="true" id="navbar"><template></template> <template></template> <template></template></b-navbar-stub>`;
|
||||
|
Loading…
Reference in New Issue
Block a user