Skip to content

Commit 7579f0d

Browse files
committed
added some console.log for testing
1 parent 48b9b80 commit 7579f0d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Frontend/test/specs/customchecks/viewing-no-data.spec.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,25 @@ describe("FEATURE: No data", () => {
3232
*/
3333
test("EXAMPLE: 'No failed custom checks' should be displayed when all custom checks are in a success state", async ({ driver }) => {
3434
//Arrange
35+
// vi.useFakeTimers();
3536
await driver.setUp(precondition.serviceControlWithMonitoring);
37+
console.log("test started now;");
3638
// given that the custom check list is not empty and status of all checks are passing
3739
await driver.setUp(precondition.hasCustomChecksPassing);
3840

3941
//Act - When navigating to the custom checks tab
4042
await driver.goTo("/custom-checks");
43+
console.log("navigating to the custom checks tab");
44+
//vi.advanceTimersByTime(10000);
45+
//setTimeout(async () => {
4146
//Expect
42-
await waitFor(async () => {
47+
waitFor(async () => {
48+
console.log("expecting");
4349
expect(await customChecksMessage()).toBe("No failed custom checks");
4450
});
51+
// }, 5500);
52+
53+
// vi.restoreAllMocks();
4554
});
4655
});
4756
});

0 commit comments

Comments
 (0)