Files
photoprism/frontend/tests/vitest/component/loading.test.js
Ömer Duran 7ab90720ff Tests: write Initial Tests for .vue Components (#5003)
* Tests: Add initial Vue component tests
* Tests: Update package scripts
2025-05-13 11:53:17 +02:00

17 lines
507 B
JavaScript

import { describe, it, expect } from "vitest";
import { mount } from "@vue/test-utils";
import PLoading from "component/loading.vue";
describe("PLoading component", () => {
it("should render correctly", () => {
const wrapper = mount(PLoading);
// Check if component renders
expect(wrapper.vm).toBeTruthy();
// Check if the progress circular element exists
const progressCircular = wrapper.find(".vprogresscircular-stub");
expect(progressCircular.exists()).toBe(true);
});
});