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">{{
|
<small class="has-text-grey-dark">{{
|
||||||
$options.filters.formatDateTimeString(
|
$options.filters.formatDateTimeString(
|
||||||
new Date(post.insertedAt),
|
new Date(post.insertedAt),
|
||||||
|
undefined,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
}}</small>
|
}}</small>
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
:title="
|
:title="
|
||||||
$options.filters.formatDateTimeString(
|
$options.filters.formatDateTimeString(
|
||||||
post.updatedAt,
|
post.updatedAt,
|
||||||
|
undefined,
|
||||||
true,
|
true,
|
||||||
'short'
|
'short'
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,11 +4,15 @@ import App from "@/App.vue";
|
||||||
import VueRouter from "vue-router";
|
import VueRouter from "vue-router";
|
||||||
import Buefy from "buefy";
|
import Buefy from "buefy";
|
||||||
import flushPromises from "flush-promises";
|
import flushPromises from "flush-promises";
|
||||||
|
import VueAnnouncer from "@vue-a11y/announcer";
|
||||||
|
import VueSkipTo from "@vue-a11y/skip-to";
|
||||||
|
|
||||||
const localVue = createLocalVue();
|
const localVue = createLocalVue();
|
||||||
config.mocks.$t = (key: string): string => key;
|
config.mocks.$t = (key: string): string => key;
|
||||||
localVue.use(VueRouter);
|
localVue.use(VueRouter);
|
||||||
localVue.use(Buefy);
|
localVue.use(Buefy);
|
||||||
|
localVue.use(VueAnnouncer);
|
||||||
|
localVue.use(VueSkipTo);
|
||||||
|
|
||||||
describe("routing", () => {
|
describe("routing", () => {
|
||||||
test("Homepage", async () => {
|
test("Homepage", async () => {
|
||||||
|
|
|
@ -12,7 +12,7 @@ exports[`CommentTree renders a comment tree with comments 1`] = `
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<editor-stub mode="comment" value=""></editor-stub>
|
<editor-stub mode="comment" aria-label="Comment body" value=""></editor-stub>
|
||||||
</p>
|
</p>
|
||||||
<!---->
|
<!---->
|
||||||
</div>
|
</div>
|
||||||
|
@ -54,7 +54,7 @@ exports[`CommentTree renders an empty comment tree 1`] = `
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<editor-stub mode="comment" value=""></editor-stub>
|
<editor-stub mode="comment" aria-label="Comment body" value=""></editor-stub>
|
||||||
</p>
|
</p>
|
||||||
<!---->
|
<!---->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
// 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 a new issue