/**
* TestDriver SDK - Assert Test
*/
import { describe, expect, it } from "vitest";
import { TestDriver } from "../lib/vitest/hooks.mjs";
describe("Assert Test", () => {
it("should assert the testdriver login page shows", async (context) => {
const testdriver = TestDriver(context, {
ip: context.ip || process.env.TD_IP,
});
// provision.chrome() automatically calls ready() and starts dashcam
await testdriver.provision.chrome({
url: 'http://testdriver-sandbox.vercel.app/login',
});
// Take a screenshot
await testdriver.screenshot();
// Assert the TestDriver.ai Sandbox login page is displayed
const result = await testdriver.assert(
"the TestDriver.ai Sandbox login page is displayed",
);
expect(result).toBeTruthy();
});
});