Skip to content
Snippets Groups Projects
Commit 9ce6a43f authored by Zara Mudassar's avatar Zara Mudassar
Browse files

Merge remote-tracking branch 'origin/main'

# Conflicts:
#	src/components/LoginForm.vue
parents 4d09c84c 1fef180b
No related branches found
No related tags found
2 merge requests!14Create group view,!6Login form
......@@ -69,6 +69,9 @@
>Ny bruker</a>
</div>
</v-col>
</v-form>
</div>
......
import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";
import LoginView from "../views/LoginView.vue";
const routes = [
{
......@@ -17,10 +19,10 @@ const routes = [
import(/* webpackChunkName: "about" */ "../views/AboutView.vue"),
},
{
path: "/",
name: "loginView",
component: () => import("../views/LoginView.vue"),
},
path: "/login",
name: "login",
component: LoginView,
}
];
const router = createRouter({
......
import { shallowMount } from "@vue/test-utils";
import LoginForm from "@/components/LoginForm";
describe("Tests labels in LoginForm component", () => {
it("checks the E-post label", () => {
const wrapper = shallowMount(LoginForm);
expect(wrapper.find('#emailLabelId').text()).toMatch("E-post");
});
it("checks the password label", () => {
const wrapper = shallowMount(LoginForm);
expect(wrapper.find('#passwordLabelId').text()).toMatch("Passord");
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment