Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
import { screen } from "@testing-library/vue"
import { render } from "~~/test/unit/test-utils/render"
import VScrollButton from "~/components/VScrollButton.vue"
describe("Scroll button", () => {
it("should render a scroll button", async () => {
const { container } = await render(VScrollButton)
expect(screen.getByRole("button")).toBeTruthy()
expect(screen.getByLabelText(/scroll/i)).toBeTruthy()
expect(container.querySelectorAll("svg").length).toEqual(1)
})
})