Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build(deps): bump the npm_and_yarn group across 1 directory with 2 updates #1474

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: remove flushPromises from flaky test
PhilR8 committed Nov 12, 2024
commit 1ff71575aac1a28363357cdfa325be797765a3a4
23 changes: 13 additions & 10 deletions solution/ui/regulations/test/unit-test/LastParserSuccess.test.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
import { render, screen } from "@testing-library/vue";
import { describe, it, expect, beforeEach, afterEach } from "vitest";
import LastParserSuccessDate from "eregsComponentLib/src/components/LastParserSuccessDate.vue";
import flushPromises from "flush-promises";

describe("LastParserSuccessDate", () => {
beforeEach(() => {});
afterEach(() => {});
it("Populates some content", async () => {
render(LastParserSuccessDate, {
props: {
apiUrl: "http://localhost:8000/"
}
apiUrl: "http://localhost:8000/",
title: "42",
},
});
await flushPromises();
const successDate = screen.getByText("Jun 28, 2023");
expect(successDate).toBeTruthy();
setTimeout(() => {
const successDate = screen.getByText("Jun 28, 2023");
expect(successDate).toBeTruthy();
}, 1000);
});
it("Creates a snapshot of parserdate", async () => {
const wrapper = render(LastParserSuccessDate, {
props: {
apiUrl: "http://localhost:8000/"
}
apiUrl: "http://localhost:8000/",
title: "42",
},
});
await flushPromises();
expect(wrapper).toMatchSnapshot();
setTimeout(() => {
expect(wrapper).toMatchSnapshot();
}, 1000);
});
});